Hi,
I am a mechanical engineer who has recently dabbled with VBA in Microsoft Excel (Office 2003). I have created an excel (.xls) file (created macro using VBA). The excel file is protected and has hidden worksheets. When I try to run the excel macro in Internet Explorer, I get an error message "Method of class "Sheets" failed in object _Global". The macro runs fine in Excel.
So, I'm guessing that IE doesn't access the worksheets (hidden or otherwise) the Excel Workbook.
Is there a way to declare the "sheets" or "worksheets" variable in my Excel VBA code so that the Excel macros can run in the IE window as well? Is there a workaround to fix this problem? P.S.: I have to run the macro in IE.
Thanks in advance. -Rishi