File save as cell value
What's the activeworkbook's path?
And you've double checked the values in A1 and A2, right?
Tony. D wrote:
When I copy the text inot my macro button as :
Private Sub CommandButton2_Click()
v = Range("A1").Value & Range("A2").Value
ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.Path & "\" & v
End Sub
I get a runtime error 1004
"Tony. D" wrote:
I want to set up a Save As macro button to to save a file as "cell
value".xls. It should have the File Save As box appear with the follwing:
i.e. Cell A1 - MortgageNo
Cell A2 - 12345678
filename = MortgageNo12345678.xls
Can anyone help me out?
--
Dave Peterson
|