I'm using your code......
Code
Sub SaveAsCell()
Dim strName As String
On Error GoTo InvalidName
strName = Sheet1.Range("B32")
ActiveWorkbook.SaveAs strName
Exit Sub
InvalidName: MsgBox "The text: " & strName & _
" is not a valid file name.", vbCritical, "Ozgrid.com"
End Sub
Display More
but the first time I run it I get the InvalidName message but all other times after that it works OK. Would you have any idea why this is?