marcos

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

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

Marcos

resolvedResolved · Low Priority · Version 2007

Graeme has attended:
Excel Advanced course

Marcos

Hi,

I wonder if it is possible to create a macro that will increase its range in succession? I produce a column of numbers every week (adding an extra column to a table), and then produce a graph plotting the sum of this column over time - would I be able to create a macro that will specify this new extra column of data weekly.

RE: Marcos

Hi Graeme,

Thank you for your question and welcome to the forum.

It may be possible recording the macro using Relative Cell Referencing or using Excel VBA code.

When you record macros, it uses absolute cell referencing, which means that exact cell locations are recorded. The macro works only with the exact cells addresses you use when you record the macro.

Using Relative Cell references, the actions recorded in the macro are relative to the starting cell location.

I have enclosed a link below:

http://www.youtube.com/watch?v=ktgfq0dK_vg& ;feature=PlayList&p=D8DCBBF18402CB24&playnext=1&playnext_from=PL&index=3

This video tutorial is in 2007 but the only difference is that you go to Tools, Macro, Record New Macro. Name the macro and click OK. A Stop Record Toolbar will appear and click the Reference Cells option and ensure there is a blue frame around the button which means it is selected. Then record the macro.

I hope this helps.

Regards

Simon

Tue 1 Sep 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

See also:

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:

Fill formulae across a sheet

To copy a formula down a spreadsheet where there is data underneath, to the left or to the right of the formula, double-click on the fill handle. The fill handle is the little black cross that appears in the bottom right-hand corner of the formula cell. Unfortunately, no similar facility exists to copy formulae across the sheet.

One reasonably quick way to copy an existing formula across a sheet is to select the formula and the cells on the right to which you want to copy it. Then press Ctrl+R to copy the formula across the selected range, or, if you are menu-minded, use the Edit|Fill|Right command.

View all Excel hints and tips


Server loaded in 0.08 secs.