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

macros

ResolvedVersion 2007

Diana has attended:
Excel Advanced course

Macros

I got a bit lost with Macros, and I would appreciate if I could go over it again.

thanks!

Edited on Mon 29 Oct 2012, 13:21

RE: macros

Hi Diana

Sorry if you got a bit lost with the Macro part of the course. It might help to use a simpler example of a macro than the one we used.

Suppose you want a macro to display your company name and address all in one cell. Start by placing your cursor in any blank cell. Then start recording as follows:

View, Macros, Record Macro
Type a macro name such as Company
Choose a shortcurt key eg C (Shift + C)
Click OK

Without clicking type your company name
Press Alt+Enter to wrap to a second line
Type your comany address pressing Alt+Enter for each new line.
When finished the address rather than pressing enter click the tick in the formula bar.

Now stop recording by clicking the small blue square at the bottom of the screen.

Your macro is now recorded! To run it click in a blank cell and press Ctrl+Shift+C

You can download the the Excel Advanced 2010 Reference from our website by logging in as a Delegate with your email address and passcode. It will show you how to assign a macro to a button and where best to store a macro. For example the company macro could be stored in the Personal macro woorkbook so it can be run from any workbook.

Hope this helps for now Diana. We also run a 2 day course on macros called Excel VBA Intro/Intermediate for writing macros to create and format Excel reports.

Regards
Doug

Doug Dunn
Best STL

Mon 5 Nov 2012: Automatically marked as resolved.

Excel tip:

Conditional Formatting in Excel 2010

If you have lots of data in a spreadsheet, you may find that it is easier to read if you highlight some of the values. This is Conditional Formatting and here's how to use it:

1) Select the data you wish to apply the format to and click Conditional Formatting
2) A list of options will then appear, from this list, choose the format you wish to display e.g. find all cells with a value less than 0
3) Excel will then highlight all of these cells

To remove this: select the highlighted cells, click the drop down on the Conditional Formatting icon and select Clear Rules from selected cells.

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.13 secs.