Macro Help Needed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to put a control in a workbook where by I can save workbook to a
filename that is the contents of cell b1 and at the same time nominate a set
filepath
This is the code I am using without success.
Any help greatly appreciated.
Private Sub CommandButton4_Click()

Dim NewPath As String
Dim NewFileName As String

NewPath = "c:\Documents and Settings\Garry El\My Documents\WORK\JOB STATUS
REPORTS"

NewFileName = Range("b1").Value





End Sub
 

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