Hi marc
Have you tryed useing the concatenate function in I11 to merge data from two cells together.
Not sure if this will work but try
("Sheet1").Range("I11").Value & ("Sheet1").Range("I12").Value
steve
Thank's for your help anyway .
regards
Marc
Marc
Would it not work, if you first build by means of a formula (with CONCATENATE or &) whatever you need in the cell to which your VBA code refers to?
Aladin
Application.ActiveWorkbook.SaveAs Sheets("Sheet1").Range("I11").Value & Sheets("Sheet1").Range("I12").Value
Hi Marc
This code will work, if not your cells may contain invalid characters.
Sub SaveAsCells()
Dim MyFileName As String
With Sheets("Sheet1")
MyFileName = .Range("A1") & .Range("A2") & ".xls"
End With
ThisWorkbook.SaveAs MyFileName
End Sub
Dave
OzGrid Business Applications