A
Arne Hegefors
Hi! I have a workbook that I have set as an object by reffering to active
workbook. Then I want to save that workbook but I cannot refer to active
workbook because another workbook is active. Please help me!
Dim oPosFile As Object
Set oPosFile =
Workbooks(ActiveWorkbook.Name).Sheets(ActiveSheet.Name)
'''
ActiveWorkbook.SaveAs Filename:= _
sRMPosSaveFilePath & sRMPosFilename & ".txt",
FileFormat:=xlText _
, CreateBackup:=False
workbook. Then I want to save that workbook but I cannot refer to active
workbook because another workbook is active. Please help me!
Dim oPosFile As Object
Set oPosFile =
Workbooks(ActiveWorkbook.Name).Sheets(ActiveSheet.Name)
'''
ActiveWorkbook.SaveAs Filename:= _
sRMPosSaveFilePath & sRMPosFilename & ".txt",
FileFormat:=xlText _
, CreateBackup:=False