Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 64
Default Right click - Normal view/ Page break preview

The macro below is only working if the activesheet is in "normal
view" but not when in "page break preview" - could someone pls amend
the macro to make it works in both status.thxs


Sub auto_open()

Application.CommandBars("Cell").Reset
With Application.CommandBars("Cell").Controls

With .Add
.Caption = "Close"
.OnAction = ThisWorkbook.Name & "!CloseBook"
.Tag = cControlTag
.BeginGroup = True
End With



End With

End Sub
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 to remove page break lines in normal view? [email protected] Excel Discussion (Misc queries) 6 April 4th 23 02:19 PM
Why does my 100% Normal Page view not match Print Preview? pt Excel Discussion (Misc queries) 0 July 13th 09 07:36 PM
View in page break preview JOJO Excel Discussion (Misc queries) 0 July 15th 08 05:09 PM
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
Page break in normal view set at startup Stephen S Excel Discussion (Misc queries) 3 April 14th 06 11:46 PM


All times are GMT +1. The time now is 10:12 AM.

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"