macros

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

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

Macros

resolvedResolved · Low Priority · Version 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.

 

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:

Hide data in Excel Worksheets

Let's say you have some data in cell 'C5' you would like to hide from the casual viewer.

Click cell 'C5' to select it.

Click the 'Format' menu, select 'Cells'. When the 'Format Cells' dialogue box opens, click the 'Numbers' tab (if necessary), then select 'Custom' from the 'Category' list.

Double-click the 'Type' entry box and type three semi-colons: ";;;"

Click 'OK' to close the dialogue box and accept the new formatting.

The data in cell 'C5' disappears. It's still there and will work in calculations, but it isn't visible.

If you need to check the data, just click the blank cell and the contents appear in the 'Formula bar'.

View all Excel hints and tips


Server loaded in 0.08 secs.