Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Page Break Preview

Hi,
this could be a simple thing but having problems.
I want to do print preview then do the Page break preview
so that I can make sure the sheet will fit accordingly.
I try recording a macro doing File, print preview, page
break preview but when I run the macro,it seems to take me
to print preview but doesen't do the page break thing.

Can anyone help?

thanks,

juan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Page Break Preview

Hi Juan,

Try:

Application.Dialogs(xlDialogPrintPreview).Show


---
Regards,
Norman



"juan" wrote in message
...
Hi,
this could be a simple thing but having problems.
I want to do print preview then do the Page break preview
so that I can make sure the sheet will fit accordingly.
I try recording a macro doing File, print preview, page
break preview but when I run the macro,it seems to take me
to print preview but doesen't do the page break thing.

Can anyone help?

thanks,

juan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Page Break Preview

Hi,
This will just bring me to the print preview. Which is not
the problem. The problem is that I'm trying to get to the
Page break view and drag to where I want it. Example, I
did this
Sheets("lines by").Select
Application.Dialogs(xlDialogPrintPreview).Show
ActiveSheet.VPageBreaks(1).DragOff
Direction:=xlToRight, RegionIndex:=1
ActiveWindow.View = xlNormalView
But the macro will bring me to the Print Preview and stays
there. So if I hit the close button or page break button,
it seems as if the macro runs.
Hope I'm clear. Please provide any more input if you see
the problem.
Thanks,

Juan
-----Original Message-----
Hi Juan,

Try:

Application.Dialogs(xlDialogPrintPreview).Show


---
Regards,
Norman



"juan" wrote in message
...
Hi,
this could be a simple thing but having problems.
I want to do print preview then do the Page break

preview
so that I can make sure the sheet will fit accordingly.
I try recording a macro doing File, print preview, page
break preview but when I run the macro,it seems to take

me
to print preview but doesen't do the page break thing.

Can anyone help?

thanks,

juan



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I do page breaks when view menu doesnt page break preview HeatherF55 Excel Discussion (Misc queries) 0 September 21st 07 04:24 AM
Remove big gray page number on Page Break Preview??? annafred Excel Discussion (Misc queries) 1 January 9th 07 02:28 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
Hiding the page number in page break preview background. I need coffee, wake me up! Excel Discussion (Misc queries) 0 May 15th 06 10:32 AM


All times are GMT +1. The time now is 11:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"