vba intro
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 intro

VBA intro

resolvedResolved · Medium Priority · Version 2007

replyReply Wed 18 May 2011, 15:44Delegate Theodora said...

Theodora has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

VBA intro

on the course, we were given a formula to work out a calculation on a particular cell. How do I replicated this formula to work on all other cells/

For upcoming training course dates see: Pricing & availability

replyReply Thu 26 May 2011, 10:28Trainer Stephen said...

RE: VBA intro

Hi Theodora

Thanks for your question

The easiest solution would be to simply copy down the formula down once you have inserted it into the cell

The following line of code should work OK

Range("A1").AutoFill Destination:=Range("A1").CurrentRegion.Rows.Count

Regards

Stephen

Wed 1 Jun 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel.training.course.london and other Microsoft training courses.

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


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