Hi guys,
I am trying to figure out this macro and can't seem to make it save correctly. I am trying to save this selection to pdf and then make it save the filename as "O'shirts Estimate (value of cell 4f and the current date).
It only saves the file as this
O'shirts Estimate & WST Screen Print Auto Invoice.pdf
It should be: O'shirts Estimate Julie 7/8/14.pdf
This is what I have so far:
Sub SavePDF()
'
' SavePDF Macro
'
'
ActiveWindow.SmallScroll Down:=-24
Range("A1:F26").Select
ChDir "Macintosh HD:Users:KurtKunzler:Desktop:Desktop:O'shirts:"
Range("A1:F26").Select
ActiveWorkbook.SaveAs Filename:= _
"Macintosh HD:Users:KurtKunzler:Desktop:Desktop:O'shirts:Estimates:O'shirts Estimate & WST.Cells(4, F).Text & Format(Now, m-dd-yy).pdf" _
, FileFormat:=xlPDF, PublishOption:=xlSelection
End Sub
Can anyone help me?
I am trying to figure out this macro and can't seem to make it save correctly. I am trying to save this selection to pdf and then make it save the filename as "O'shirts Estimate (value of cell 4f and the current date).
It only saves the file as this
O'shirts Estimate & WST Screen Print Auto Invoice.pdf
It should be: O'shirts Estimate Julie 7/8/14.pdf
This is what I have so far:
Sub SavePDF()
'
' SavePDF Macro
'
'
ActiveWindow.SmallScroll Down:=-24
Range("A1:F26").Select
ChDir "Macintosh HD:Users:KurtKunzler:Desktop:Desktop:O'shirts:"
Range("A1:F26").Select
ActiveWorkbook.SaveAs Filename:= _
"Macintosh HD:Users:KurtKunzler:Desktop:Desktop:O'shirts:Estimates:O'shirts Estimate & WST.Cells(4, F).Text & Format(Now, m-dd-yy).pdf" _
, FileFormat:=xlPDF, PublishOption:=xlSelection
End Sub
Can anyone help me?