paulsprunken
New Member
- Joined
- Oct 17, 2016
- Messages
- 3
My macro starts with the following declarations:
Dim pathActHdr As String
Dim pathSoHdr As String
Dim createNewSub As String
Dim saveNewSub As String
pathActHdr = Range("'PARAMETERS'!pathActHdr").Value
pathSoHdr = Range("'PARAMETERS'!pathSoHdr").Value
createNewSub = Range("'PARAMETERS'!createNewSub").Value
saveNewSub = Range("'PARAMETERS'!saveNewSub").Value
Note: there is a sheet 'PARAMETERS" in the workbook that hold a couple references that are needed furtheron in the macro.
The values in this sheet have been given Named ranges
The Dim variables are using the same name as the Named Ranges (for ease of reference)
However, when running the macro, it takes between 1-2 minutes to get past the last of the 8 lines copied above and I'm wondering
how this performance might be improved. Searches did not yield any clear direction for me to pursue yet
Thanks to anyone taking an interest; much appreciated!
Dim pathActHdr As String
Dim pathSoHdr As String
Dim createNewSub As String
Dim saveNewSub As String
pathActHdr = Range("'PARAMETERS'!pathActHdr").Value
pathSoHdr = Range("'PARAMETERS'!pathSoHdr").Value
createNewSub = Range("'PARAMETERS'!createNewSub").Value
saveNewSub = Range("'PARAMETERS'!saveNewSub").Value
Note: there is a sheet 'PARAMETERS" in the workbook that hold a couple references that are needed furtheron in the macro.
The values in this sheet have been given Named ranges
The Dim variables are using the same name as the Named Ranges (for ease of reference)
However, when running the macro, it takes between 1-2 minutes to get past the last of the 8 lines copied above and I'm wondering
how this performance might be improved. Searches did not yield any clear direction for me to pursue yet
Thanks to anyone taking an interest; much appreciated!