Hi,
I have module1 which when ran is supposed to:
Example:
Sub module1()
tempFileName = Environ("Temp")& "\" & generate_guid()
Application.Workbooks.Open("PATH").SaveAs tempFileName
Set template = Application.Workbooks.Open(tempFileName)
Call miles(template)
Call names(template)
Call prequal(template)
Call cars(template)
Call trucks(template)
Call dates(template)
End Sub
Private Sub miles(ByRef template As Workbook)
...
code
...
End Sub
Private Sub names(ByRef template As Workbook)
...
code
...
End Sub
Private Sub prequal(ByRef template As Workbook)
...
code
...
End Sub
...
...
(and so on for the other 3 Private Sub's)
I think I included all information that I believe might be causing the issue. Any help with this would be greatly appreciated.
Thanks!
I have module1 which when ran is supposed to:
- Set variable "template"
- Call 6 different Sub's with "template" as argument
Example:
Sub module1()
tempFileName = Environ("Temp")& "\" & generate_guid()
Application.Workbooks.Open("PATH").SaveAs tempFileName
Set template = Application.Workbooks.Open(tempFileName)
Call miles(template)
Call names(template)
Call prequal(template)
Call cars(template)
Call trucks(template)
Call dates(template)
End Sub
Private Sub miles(ByRef template As Workbook)
...
code
...
End Sub
Private Sub names(ByRef template As Workbook)
...
code
...
End Sub
Private Sub prequal(ByRef template As Workbook)
...
code
...
End Sub
...
...
(and so on for the other 3 Private Sub's)
I think I included all information that I believe might be causing the issue. Any help with this would be greatly appreciated.
Thanks!