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

marcos

ResolvedVersion 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.

Excel tip:

New to Excel 2010 - Sparklines!

Excel 2010 includes a new feature called Sparklines which are tiny charts that fit into a single cell and plot data in cells from the worksheet. There are a host of formatting and styles that can be applied to them and they are really quite interesting.

>insert
>sparklines
>Choose any style you want

You will be asked for the range and it will automatically select the cell your in to insert the sparklines.

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.