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

macros

ResolvedVersion 2003

Matthew has attended:
Excel Intermediate course

Macros

Is it possible to create a macro to view a custom view then print it out? Also, will a macro record print preview settings so that when macro is run, it will print with specific page breaks/landscape etc?

RE: Macros

Hi Matthew


Thank you for your question.

Yes it is possible to record a macro that perform the actions you require.

Before recording the macro have an idea of what exactly you want the macro to do for you i.e. what menus to go to & where the relevant commands are located.

Once you've started recording the macro, perform all the required steps, once you've sent the file to the printer, click the 'stop recording' button.

The keyboard shortcut you would have assigned to the macro (or a toolbar button can be created if required) should now re-run these steps on other files. However, the thing to bear in mind is that the excact steps you carried out when recording the macro will be repeated i.e if you inserted a page break between row 15 & 16, the same page break will be inserted into other files.

If you require the flexibility to define where certain print preview settings are applied, a certain degree of VBA (visual basic - programming code) manipulation will be needed for those variables in the coding.
I would need to refer you to a collegue for any further information regarding Visual Basic.


I hope this resolves your question. If it has, please mark this question as resolved.


If you require further assistance, please reply to this post.


Kind Regards,


Nafeesa

Microsoft Office Specialist Trainer

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

Tue 28 Sep 2010: 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:

Adding up time greater than 24 hours

When you add up time if it exceeds 24 hours i.e 27 hours appears as 03:00. Go to Format / Cells / Number / Custom. The format is hh:mm but if change it to [hh]:mm it will add up to the correct amount of hours.

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