![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFormulaBar = True End Sub Private Sub Workbook_Open() Application.DisplayFormulaBar = False End Sub I am a VB newbie and I pasted this info into the code for the worksheet, but I can still see the formulas. |
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
These are workbook event procedures, they belong in a specific module called 'ThisWorkbook.' The easiest way to access this module is to right click on the XL icon to the right of your 'File' menu heading and then click 'view code.' You can then paste this code into the module. If have placed the code anywhere else in the workbook, you should delete it.
Hope this helps. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|