ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save As B2 (https://www.excelbanter.com/excel-programming/306726-re-save-b2.html)

Frank Kabel

Save As B2
 
Hi
try:
dim fname
Dim fpath
fpath="c:\Daily Group Summary Reports\"
with activeworkbook
fname=.worksheets("sheet1").range("B2").value
.saveas fpath & fname
end with






--
Regards
Frank Kabel
Frankfurt, Germany


Wonderful,
Thanks Frank.
Also, how can i modify this to save in a particular folder. for
instance:
save as c:\Daily Group Summary Reports\fname
or something...
thanks.


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 07:45 PM.

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