marreco
Member
HI
imagine that you have a aplicaticação that exports the data without saving an excel file.
then the exported file is opened on the screen.
how to copy the data from that file open (not saved) to a file (open) already saved?
the problem is that this file does not yet have a name (default name when a file is opened blank, it would be book1), but I can not choose this file, because it does not have an extension (xls, xlsx etc), this because he has not been saved.
Thank you!!
imagine that you have a aplicaticação that exports the data without saving an excel file.
then the exported file is opened on the screen.
how to copy the data from that file open (not saved) to a file (open) already saved?
the problem is that this file does not yet have a name (default name when a file is opened blank, it would be book1), but I can not choose this file, because it does not have an extension (xls, xlsx etc), this because he has not been saved.
Code:
Sub Copy_From_NotSavedFile_To_SavedFile()
'I need get data in column A from not seved file to saved file
ActiveWorkbook.Sheets(1).Range("A2:A100").Copy Destination:=ThisWorkbook.Sheets("SavedTab").Range("A1")
End Sub
Thank you!!