ThomasFoster
New Member
- Joined
- Jul 18, 2019
- Messages
- 1
Sorry if this is in the wrong location, this is the first time I am posting on this forum.
My issue is a regarding a "Compile Error: Method or data member not found" that happens when an excel file is opened by some users. These users have either excel 2013 or 2016 installed.
The compile error is related to the "ThisWorkbook.AutoSaveOn" command in the below code that runs in the WorkBook_Open() Sub.
I have googled this issue and found references to this not working well with Excel 2013 but nothing regarding issues with Excel 2016.
It is also not even going to my error handler function it is failing right away.
I am at a bit of a loss as to how to fix this in such a way that lets the file work on Excel 2013/2016 and yet still disables the autosave when running in later versions where the code works no problem.
Is this something that can be fixed or do I need to rip out this section for it to work on older versions.
Thanks for your help.
My issue is a regarding a "Compile Error: Method or data member not found" that happens when an excel file is opened by some users. These users have either excel 2013 or 2016 installed.
The compile error is related to the "ThisWorkbook.AutoSaveOn" command in the below code that runs in the WorkBook_Open() Sub.
Code:
If Val(Application.Version) > 15 Then If ThisWorkbook.AutoSaveOn Then ThisWorkbook.AutoSaveOn = False
End If
I have googled this issue and found references to this not working well with Excel 2013 but nothing regarding issues with Excel 2016.
It is also not even going to my error handler function it is failing right away.
I am at a bit of a loss as to how to fix this in such a way that lets the file work on Excel 2013/2016 and yet still disables the autosave when running in later versions where the code works no problem.
Is this something that can be fixed or do I need to rip out this section for it to work on older versions.
Thanks for your help.