daniel22bg
New Member
- Joined
- Nov 21, 2008
- Messages
- 31
Hi everyone, I am trying to set up a VBA macros. I have:
However, I get an error msg at
File_Name =Path& "POBTR2_Portfolio_" & i
What is it that i do wrong?
Code:
Dim Path, FileName As String
Dim i As Integer
.....
'i goes in a For ... Next Loop
Path = Worksheets("Sheet1").Range("F23").Value
File_Name =Path& "POBTR2_Portfolio_" & i
ActiveWorkbook.SaveAs FileName:=File_Name, FileFormat:=xlText, CreateBackup:=False
However, I get an error msg at
File_Name =Path& "POBTR2_Portfolio_" & i
What is it that i do wrong?