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

excel computer course london - excel

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel computer course london - Excel

excel computer course london - Excel

ResolvedVersion Standard

Craig has attended:
Excel Advanced course

Excel

How to record a macro incorporating any future changes to column numbers etc?

RE: Excel

Hi Craig

The method that I would use to do this is to use VBA code to loop through a range of columns/rows/cells etc. As it is a loop the number of columns will not matter as it will keep going until it reaches an empty column or row.

Hope this gives you some ideas
David

Excel tip:

Quickly copy a formula across sheets

Suppose you have a formula in cell Sheet1!B2, say =A1*5%, that you wish to copy to cell B2 on Sheet2, Sheet3 and Sheet4. Instead of using copy and paste, try this: (1) Select Sheet1!B2. (2) Group Sheet1 with the worksheets Sheet2, Sheet3 and Sheet4 by holding down Ctrl and clicking on the tabs of the sheets to group them. (3) Press the F2 key, then immediately press Enter to copy the formula in Sheet1!B2 across the grouped sheets.

Remember to ungroup the sheets afterwards! Right-click on any tab and choose Ungroup Sheets to do that.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.