![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 81
|
I have a custom toolbar button that opens a userform Public Sub FormReturn27() Hide_All mfareaval = "27A" UnitFormS.Show End Sub whaere hide_all just hides all but 1 worksheet the problem is that I get this error: Adocument with the name "..." is already open, Your cannot open two document with the same name even if the documents are in different folders. as far as i can tell I m not trying to open anything... just show a form... any ideas? Ed |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I'm guessing this is a UserForm and that you have some code in the Initialize or the Activate event that has a line like:
Workbooks.Open etc etc Even though the debugger is highlighting the .Show code line, the problem is really with your userform, not this line of code. It's sort of a quirk of the VBE debugger. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 38
|
I had a similar sounding problem after moving a workbook between drives. The custom toolbar had macros associated with various buttons, these had to be re-associated with the macros in the new workbook location, other wise I was given the same fault message as you are getting.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|