Quantcast
Channel: Tech Support Guy
Viewing all articles
Browse latest Browse all 29110

Excel Macro to allow adding rows

$
0
0
I'm not sure what this is called (possibly dynamic named range) so I will try to explain. I am trying to update a macro that was written by somebody else. In the macro he used row numbers. I have added rows within the referenced area and now the macro pulls information from the wrong rows. I want to change the macro to allow for more rows whenever I feel like we need to add them. The piece of the code that I want to update is below. If I change the row numbers, it works properly, but I need them to allow for movement. I'm not sure how the rest of the macro uses this piece, so if I need to post the rest of the macro or the actual document, please let me know.

'Project Level Documents
rowHeader = 1
rowPDDstr = 2
rowPDDend = 5
rowTOGPMstr = 6
rowTOGPMend = 8
rowRAstr = 9
rowRAend = 12
rowSOWstr = 13
rowSOWend = 13
rowTestStrategystr = 14
rowTestStrategyend = 14
rowImplementation_and_Transition_Strategystr = 15
rowImplementation_and_Transition_Strategyend = 15
rowIssue_Mgmtstr = 16
rowIssue_Mgmtend = 17
rowRisk_Mgmtstr = 18
rowRisk_Mgmtend = 21
rowChange_Mgmtstr = 22
rowChange_Mgmtend = 25
rowProject_Planstr = 26
rowProject_Planend = 26
rowProject_Statusstr = 27
rowProject_Statusend = 27
rowProject_Reviewstr = 28
rowProject_Reviewend = 29

Viewing all articles
Browse latest Browse all 29110

Trending Articles