Saving a non macro worksheet

M

Martin

I'm trying to save just a worksheet without any macro's or formulas from
within a macro - Is this possible?
Using the following code:
If Worksheets("Invoice").Range("H4") = "Quote" Then
fName = "C:\AA-Documents\Quotes\" & Worksheets("no macros").Range("B6")
& " - " & Worksheets("Invoice").Range("H4") & " - " &
Worksheets("Invoice").Range("H6") & ".XLS"
Else
fName = "C:\AA-Documents\Invoices\" & Worksheets("no
macros").Range("B6") & " - " & Worksheets("Invoice").Range("H4") & " - " &
Worksheets("Invoice").Range("H6") & ".XLS"
End If

Worksheets("no macros").SaveAs FileName:=fName
FileSaved = fName & " Saved!"
MsgBox FileSaved

Office 97 Professional

TIA
Martin
 

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