SteveOranjin
Board Regular
- Joined
- Dec 18, 2017
- Messages
- 170
Hello,
I have a macro set up that is designed to copy all of the data in a particular tab on a sheet, and transfer it to a new sheet, and then to save that sheet. I'm wondering something though, since all of the folders that I save data sheets in have a certain naming convention to them, is there a way that I can have excel capture that so the data I'm saving is always moved to the right folder?
Here is an example:
The part that changes for the folders is highlighted in Green. That data ALWAYS ALWAYS enter every sheet I make. It is also contained in "Macro!M10" (That is the first section of the highlight) and "Macro!N10" (that is contained in the second part of the highlight.)
Hope you are well,
Steve
I have a macro set up that is designed to copy all of the data in a particular tab on a sheet, and transfer it to a new sheet, and then to save that sheet. I'm wondering something though, since all of the folders that I save data sheets in have a certain naming convention to them, is there a way that I can have excel capture that so the data I'm saving is always moved to the right folder?
Here is an example:
Rich (BB code):
Sub Copy_Save_Workbook() '~~> This will create a new workbook with the relevant sheet
ThisWorkbook.Sheets("Data Sheet").Copy
'~~> Save the new workbook
ActiveWorkbook.SaveAs "M:\Vendor Product Data\Site Light (SLT)\Data Loads (SLT)", FileFormat:=51
End Sub
The part that changes for the folders is highlighted in Green. That data ALWAYS ALWAYS enter every sheet I make. It is also contained in "Macro!M10" (That is the first section of the highlight) and "Macro!N10" (that is contained in the second part of the highlight.)
Hope you are well,
Steve