Closing and reopening the same file
If you're running this from a different workbook, but want to close the
activeworkbook.
Dim wkbkFullName as string
dim wkbk as workbook
with activeworkbook
wkbkfullname = .fullname
.close savechanges:=false
set wkbk = workbooks.open(filename:=wkbkfullname)
end with
Tom wrote:
I need a macro to close an open file but without saving its changed content.
Then reopen it again. Hence, the macro will have to be able to read the
filename first and use that name to reopen it. Any help is much appreciated.
TIA
Tom
--
Dave Peterson
|