Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
i have an application with lots of sheets, forms and modules and subs. with each error i would like the following code to be executed: private sub error() With Sheets("waarschuwing") Dim c As Integer .Visible = xlSheetVisible For c = 1 To Sheets.Count If Sheets(c).Name < "waarschuwing" Then Sheets(c).Visible = xlSheetVeryHidden End If Next End With ActiveWorkbook.Save ActiveWorkbook.Close End Sub however, the sub is in a module. I would like to have the on erro goto statement go to this sub in the error handling module. How can i do that in VBA? Thanks, Pierre -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error problem | Excel Discussion (Misc queries) | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
Problem with #VALUE/0! error | Excel Worksheet Functions | |||
Unknown where is the problem on the Runtime error - Automation error | Excel Programming |