LotusWaide123
New Member
- Joined
- Nov 16, 2017
- Messages
- 3
[FONT="]The following code works in older versions of Excel (I have about 3 different versions to work with), but in Excel 2016 it fails (or maybe it is failing on the specific computer... but I'm thinking it is the version of Excel). No error message… it just doesn’t do anything. It will work if I specify a file other than the currently open file, but it doesn’t work the way I intend (which is to open the same file currently active, thus overwriting any changes without saving in between - if someone has an alterantive way of doing that I'm all ears):[/FONT]
[/FONT][/COLOR][/FONT][/COLOR]
[FONT="]FYI - The file is located in a normal folder on the PC and not in a network location (in case that would make a difference).
Any ideas? Thank you so much in advance![/FONT]
Code:
[COLOR=#555555][FONT="]Sub ReOpenNoSave()[/FONT][/COLOR]
[COLOR=#555555][FONT="] Workbooks.Open ActiveWorkbook.Path & “\” & ActiveWorkbook.Name[/FONT][/COLOR]
[COLOR=#555555][FONT="]End Sub
[COLOR=#222222][FONT=Verdana]
[FONT="]FYI - The file is located in a normal folder on the PC and not in a network location (in case that would make a difference).
Any ideas? Thank you so much in advance![/FONT]