Hello. I have a macro in a workbook that opens a separate workbook and copies in some data. I then want to run the macro that is in the newly opened workbook NOT the original one. The code runs fine up to the point where it needs to run the macro. I'm assuming the wording needs to be different and I can't just use 'Call', since the macro isnt saved in the same workbook as the overarching macro. Suggestions? Thanks
VBA Code:
Dim yearmonthday As String
Dim foldername As String
Dim fname As String
yearmonthday = Range("D3") & Range("C3") & Range("B3")
foldername = Range("B23")
fname = Range("B22")
'open 'Working File' workbook'
Workbooks.Open "\\group\Shared\Public\Folder\" & foldername & "\" & fname & ".xlsx" _
'Select data
Set Rng = Range("A1:AP" & Cells(Rows.Count, "A").End(xlUp).Row)
Rng.Select
Rng.Copy
'Open Converter, paste in data and run macro
Workbooks.Open "P:\Folder\Folder\Converter.xlsm"
Range("A1").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
ActiveWorkbook.Call Run