ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   'Save as' problem (https://www.excelbanter.com/excel-programming/379491-save-problem.html)

joecrabtree

'Save as' problem
 
To all,

I have a macro that imports some data from a text file, and then
produces a graph of the data. I then save only the graph, and
associated worksheet ( i.e. the data ) as a seperate file. I use the
command 'Save as' to save the file.

When I do this it obviously closes the original file, and leaves the
user looking at the saved as file. Is there anyway I can keep my
original workbook (DATA.xls) open, while saving the file. So that the
user can then continue to use the workbook (DATA.xls) without any
interuption?

Thanks for your help in advance,

Regards

Joseph Crabtree


Bob Phillips

'Save as' problem
 
Use SaveCopyAs instead of SaveAs

ActiveWorkbook.SaveCopyAs

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"joecrabtree" wrote in message
ups.com...
To all,

I have a macro that imports some data from a text file, and then
produces a graph of the data. I then save only the graph, and
associated worksheet ( i.e. the data ) as a seperate file. I use the
command 'Save as' to save the file.

When I do this it obviously closes the original file, and leaves the
user looking at the saved as file. Is there anyway I can keep my
original workbook (DATA.xls) open, while saving the file. So that the
user can then continue to use the workbook (DATA.xls) without any
interuption?

Thanks for your help in advance,

Regards

Joseph Crabtree





All times are GMT +1. The time now is 09:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com