ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   PageSetup doesn't work (https://www.excelbanter.com/excel-programming/444119-pagesetup-doesnt-work.html)

Chrigu

PageSetup doesn't work
 
I checkt the code, everything works when i check with F8. But the
Header is not changed...

dim wks as worksheet
for each wks in thisworkbook.worksheets
wks.PageSetup.RightHeader = "HeaderRight"
next wks

Thanks for your help!

Jim Cone[_2_]

PageSetup doesn't work
 

It works for me in xl2003. Couple of notes...
A worksheet must have some data on it in order to preview it.
If "HeaderRight" is a variable, then remove the surrounding quote marks from it.
--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(remove unused styles or number formats - it's in the Free folder)




"Chrigu"
wrote in message
...
I check the code, everything works when i check with F8. But the
Header is not changed...

dim wks as worksheet
for each wks in thisworkbook.worksheets
wks.PageSetup.RightHeader = "HeaderRight"
next wks

Thanks for your help!





All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com