Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / December 2006

Tip: Looking for answers? Try searching our database.

change settings in a single workbook that doesn't effect another w

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
curious - 01 Dec 2006 05:58 GMT
i would like to make changes to an excel workbook such as in the options
(remove the appearance of the formula bar for example) but don't want the
changes to occur in other excel workbooks.  can this be done?
Gord Dibben - 01 Dec 2006 17:53 GMT
That is a global setting and will affect all workbooks.

You could use Workbook event code to disable and enable.

Private Sub Workbook_Open()
Application.DisplayFormulaBar = False
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFormulaBar = True
End Sub

If the workbook is to remain open whilst other workbooks are open use the
following.

Private Sub Workbook_Activate()
Application.DisplayFormulaBar = False
End Sub

Private Sub Workbook_Deactivate()
Application.DisplayFormulaBar = True
End Sub

Right-click on the Excel logo left of "File" on the menu and select "View Code"

Copy/paste into that module.

Gord Dibben  MS Excel MVP

>i would like to make changes to an excel workbook such as in the options
>(remove the appearance of the formula bar for example) but don't want the
>changes to occur in other excel workbooks.  can this be done?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.