Save As B2

  • Thread starter Thread starter ForSale
  • Start date Start date
F

ForSale

I want to - in a macro - save the open document as whatever is i
range("b2"). what is the code for that?
Thanks,


i will also have one more question but will put in a new thread
 
Hi
try something like

dim fname
with activeworkbook
fname=.worksheets("sheet1").range("B2").value
.saveas fname
end with

no error checking included!
 
Wonderful,
Thanks Frank.
Also, how can i modify this to save in a particular folder. fo
instance:
save as c:\Daily Group Summary Reports\fname
or something...
thanks
 
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
 

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

Back
Top