I have put this code in a workbook that as soon as it opens it is hidden. How do I reverse this or retrieve the workbook to fix the problem. Kinda new at VBA and realized I messed up.
Sub Open_Workbook()
Application.Visible = False
End Sub
Mark$1
I have put this code in a workbook that as soon as it opens it is hidden. How do I reverse this or retrieve the workbook to fix the problem. Kinda new at VBA and realized I messed up.
Sub Open_Workbook()
Application.Visible = False
End Sub
Mark$1
Go into the VBIDE, Alt-F11
In the Immediate window (Ctrl-G), type
windows("the_workbook_name.xls").Visible=true
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
You can prevent startup macros from running by holding down the shift key when you open the file.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
You can still access the workbooks code modules even though it is hidden. So when you open the VBE, expand the workbook, double click the ThisWorkbook module and edit the necessary code.
HTH
Regards, Zack Barresse
Check out the KB! :|: BOARD TAGS: WHAT ARE THEY AND HOW DO I USE THEM
What is a Microsoft MVP? | Free Microsoft Courses | My Book on Excel Tables
Thanks for the help. It is much appreciated. You cant imagine the panic I was in!
That name seems familiar ....Originally Posted by firefytr
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Wha.. who... where.. ?? Oh, ahem, hi, my name is Zack. And I'm an Excel addict. Very pleased to meet you.
Regards, Zack Barresse
Check out the KB! :|: BOARD TAGS: WHAT ARE THEY AND HOW DO I USE THEM
What is a Microsoft MVP? | Free Microsoft Courses | My Book on Excel Tables