![]() |
![]() |
|
|||||||
| 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 |
|
Guest
Posts: n/a
|
I`m building a macro in which I refer to a hidden sheet. If the sheet is unhidden everything works fine but if I hide the sheet I get an error! Has anyone ever stumbled accross this problem and does anyone know a solution?
thnks! Remi, Holland. |
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
You could unhide the sheet early in your procedure:
Sheets("Sheet1").Visible = True Then hide the sheet at the end Sheets("Sheet1").Visible = False Cheers, Nate |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
So I can set the sheet to hidden as default and hide and unhide it in my macro?
Gonne try right away! Cheers! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Yes it works...
GREAT |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|