Richard Fox
Board Regular
- Joined
- Oct 30, 2003
- Messages
- 77
I'm trying to pass the active sheet to a routine but I'm having object problems. Not sure what to do.
EDIT:
I guess I should mention that the current sheet will change several times during the routine, so that's why I want to pass the sheet to it. I want to be able to revert to the calling sheet.
Code:
Module_CurrentDisc
Sub Disc()
Sheets("5S REFER").Select
Module_CurrentDisc.CopyIOU (ActiveSheet) ' ERROR OCCURS HERE
Sheets("5G REFER").Select
Module_CurrentDisc.CopyIOU (ActiveSheet)
Sheets("COMPL 24").Select
Module_CurrentDisc.CopyIOU (ActiveSheet)
End Sub
Sub CopyIOU(ByVal Sh As Object)
Msgbox("Do stuff to ActivSheet")
End Sub
EDIT:
I guess I should mention that the current sheet will change several times during the routine, so that's why I want to pass the sheet to it. I want to be able to revert to the calling sheet.