Block save file prompt in imported txt file?

M

mike

I have a macro that imports a txt file into Excel (it's a log file
another macro appends to) for the user to view upon clicking the "View
Log" button I made.

Problem is I need to remove the Save dialog box that comes up if the
user accidentally makes a change to the workbook. In the past users
have made changes to the log, went to close then clicked on Yes and
when that happens, formatting is lost and the log file goofed up.

I've tried workbook.saved = true, enableevents = false, displayalerts =
false and none work on this workbook that's created from importing the
text file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top