Remove File import using VBA

G

Greg H.

How can I use VBA to remove the automatic file import? I have a process
where a .txt file is automatically imported on file open but when I'm ready
to send this file out to others, I don’t want the excel file to try to update
that file on open when someone else opens the file.
 
J

Joel

It is easy to create a new workbook without macros. If you right click on
the tab name like sheet1 and select copy or move. then select copy and in
the pulldown slelect new wrokbook.

From VBA all you have to do is copy the worksheet without an after/before

Sheets("Sheet1").Copy
 

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