vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA

VBA

resolvedResolved · Medium Priority · Version 2003

Vinay has attended:
Access Intermediate course
Access Advanced course
Excel Intermediate course
Excel Advanced course

VBA

I would like to type in a field in (eg) cell A3, and i would like it to appear on another sheet under a differnce cell reference. How can this be done.

Edited on Fri 17 Oct 2008, 13:52

RE: VBA

Hi Vinay

As you have already assumed this needs some VBA code.

If its a straight forward copy of one cell in "Sheet1" to another cell in "Sheet2" then only a simple recorded macro is required.

1. Select the "Tools" menu, click "Macros" and the click "Record New Macro"

2. Name the macro "Copy_Data"

3. In "Sheet1" select cell "A3" and click "Copy"

4. Go to "Sheet2" select the destination cell "B7" and paste

5. Stop recording the macro

Every time you run the macro it will take whatever value in A3 and copy it to B7 in "Sheet2"

Now if every time you run this macro you want to paste in the next empty cell (B8, B9, etc) you will require some written VBA code that will search for the next empty cell in the required range before pasting the data.

We do run VBA courses if you are interested in learning VBA.

Hope this helps

Carlos

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Make macros work in newer versions of Excel

If you have created macros in Excel 97 or 2000 that you want to be able to use in 2002/XP or 2003, you may need to alter the macro security settings in the newer version of Excel you are using.

To do this, go to Tools - Options - Security.

Select Macro Security and change the security setting to Low.

Tick the boxes next to 'Trust Add-ins' and 'Trust Visual Basic' and click OK.

After you have restarted Windows, you should then be able to use your macros created in earlier versions of Excel.

View all Excel hints and tips


Server loaded in 0.07 secs.