vba
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

VBA

resolvedResolved · Medium Priority · Version 2003

replyReply Thu 16 Oct 2008, 17:00Delegate Vinay said...

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.

For upcoming training course dates see: Pricing & availability

replyReply Fri 17 Oct 2008, 13:47 Edited on Fri 17 Oct 2008, 13:52Trainer Carlos said...

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

 

Please browse our web site to find out more about
visual+basic+excel and other Microsoft training courses.

Excel tip:

Concatenating Results of Formulas

To concatenate the results of formulas simply add the "&" after the formula or function closing bracket.

function1(....)&function2(.....)

see example Creating a range of monthly payments as text.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard