Relative Content

Tag Archive for excelvbavba7

Document not saved error after running VBA macros

I am facing an issue with an excel file that contains various macros that do changes to the workbook such as (adding and removing worksheets, creating content based on data available in the file, setting up page properties (header, footer, etc.) and page breaks, etc.) in certain cases after running the macros without any error an issue occurs that the user cannot save the file anymore.

TypeOf doesn’t work properly after resetting VBA

Setup Given the following code (inside “ThisWorkbook”) and the excel object “MainTable”, which is the auto generated class module of my first Table just renamed, I get unexpected behavior using TypeOf. Behavior I expect that “Main” will be print twice, when activating the first table. If I close and open the workbook this is true. […]