Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Page Layout 1

Status
Not open for further replies.

JasGrand

Programmer
Jan 8, 2003
144
CA
Hello, I was wondering how I can change a sheet's page layout through vba in excel?

Thanks,


Jason Grandmaison
 
Hi,

1) Turn on the macro recorder.

2) make the page layout changes you want.

3) turn off the macro recorder.

4) observe the recorded code.

Skip,

[glasses] [red]Be advised:[/red] When transmitting sheet music...
If it ain't baroque, don't fax it! [tongue]
 
ok, that's amazing... all this time i've been coding the long way (researching...)... lol...

Thanks,


Jason Grandmaison
 
FYI,

As a perceived "Expert", I often employ the macro recorder for processes and objects that I don't often use and even with some that I use alot.

Skip,

[glasses] [red]Be advised:[/red] When transmitting sheet music...
If it ain't baroque, don't fax it! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top