Excel Macro - Create Multiple Workbooks
Closed
snjblackbourne
Posts
2
Registration date
Friday December 15, 2017
Status
Member
Last seen
December 15, 2017
-
Dec 15, 2017 at 04:03 PM
snjblackbourne Posts 2 Registration date Friday December 15, 2017 Status Member Last seen December 15, 2017 - Dec 15, 2017 at 05:20 PM
snjblackbourne Posts 2 Registration date Friday December 15, 2017 Status Member Last seen December 15, 2017 - Dec 15, 2017 at 05:20 PM
Related:
- Excel Macro - Create Multiple Workbooks
- Create skype account with gmail - Guide
- Spell number in excel without macro - Guide
- Excel macro to create new sheet based on value in cells - Guide
- Create snapchat account - Guide
- Create hotmail account - Guide
Updated on Dec 15, 2017 at 05:21 PM
Sheets("MANAGER").Select
Range("B5:D5").Select
ActiveCell.FormulaR1C1 = "=Data!R[-3]C[-1]"
Sheets("Data").Select
ActiveWindow.SelectedSheets.Visible = False
ChDir "C:\Users\sblackbourne\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\sblackbourne\Desktop\TESTtestTEST.xlsx" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
End Sub
This only creates one copy of the workbook.
The ("=Data!R[-3]C[-1]") string is referring to A2 on my Data tab and I need it to create a workbook for every cell in Column A.
The workbook name (TESTtestTEST ) would need to be automatically selected from the cell to the right (B2) on the Data tab.
I just do not know enough abut macros on how to get it to look to a corresponding cell to label the workbook nor how to get it to create so many copies without writing a section of code for each workbook