Object Error when excel is opened as ".mht" (single web page)

atf32

Board Regular
Joined
Apr 13, 2011
Messages
157
I have a workbook (excel) that is being saved as a single File Web Page (.mht). All of the code/functions and procedures works as expected, except that I have a piece of code that initiates on open and it resizes and initalizes a listbox. When I open the file as an excel file (2003 or 2007), I do not get this error. The error message tells me "Unable to get the OLEObjects proprty of the Worksheet class."..........Does this mean that I need to set a setting for this to work? :confused:
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I have a workbook (excel) that is being saved as a single File Web Page (.mht). All of the code/functions and procedures works as expected, except that I have a piece of code that initiates on open and it resizes and initalizes a listbox. When I open the file as an excel file (2003 or 2007), I do not get this error. The error message tells me "Unable to get the OLEObjects proprty of the Worksheet class."..........Does this mean that I need to set a setting for this to work? :confused:
ADDED NOTE: This issue only happens when initiate through the "Workbook_Open" when I initially open the file. If I manual execute the "Workbook_Open" throughthe VBE, everything runs as expected.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top