ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   why, when i open a work sheet does a blank sheet open as well (https://www.excelbanter.com/excel-discussion-misc-queries/149179-why-when-i-open-work-sheet-does-blank-sheet-open-well.html)

John

why, when i open a work sheet does a blank sheet open as well
 
any answers?

bj

why, when i open a work sheet does a blank sheet open as well
 
More details?

"John" wrote:

any answers?


JohnR

why, when i open a work sheet does a blank sheet open as well
 
You might want to try the reverse of this, when you get to the Objects,
delete the code if it exists

John



From Excel, hit Alt-F11 to open the VBE. On the left side is the Project
Explorer. One of the project listed should be Personal.xls. Expand the
project if necessary and open the folder called Microsoft Excel Objects. In
that folder, there is an object called ThisWorkbook. Double click that and
it will open a code pane for that module. At the top of that code pane,
there are two drop down boxes. From the left one, select Workbook and from
the right select Open (it may select that for you automatically). This will
put the Sub and End Sub statement in the code pane. You type in the rest of
the code.

The ThisWorkbook module is actually a special kind of Class Module. It
already has all the class information coded into it, so you have access to
all of the events.





"John" wrote in message
...
any answers?





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

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