Hello,
I'm wishing to save a new workbook based on a cell value in a different sheet. I was able to get this to work based on the cell value of the active sheet, but when I try to reference a different sheet, I get an error. Considering I'm still new to learning VBA syntax, this isn't surprising!
The key excerpt of the code is below:
Any ideas?
Thanks!
I'm wishing to save a new workbook based on a cell value in a different sheet. I was able to get this to work based on the cell value of the active sheet, but when I try to reference a different sheet, I get an error. Considering I'm still new to learning VBA syntax, this isn't surprising!
The key excerpt of the code is below:
Code:
.SaveAs ThisWorkbook.Path & Application.PathSeparator & "R-" & Worksheets("File Namer").Range("D1").Value
Any ideas?
Thanks!