So I have "quote" form that has over 16000 lines on it The Lines basically repeat evrry 112 lines but the site numbers are different.. The quote tool can handle up to 150 sites, My problem is when we need to update or add parts it takes me a whole day or more to update the quote sheet.
each line has a unique count that comes from a named cell such as Site__1_Widget2_qty, Site__1_Widget3_QTY etc
What i do when I need to make changes is delete sites 2 thru 150, Make my additions or deletions to site 1, Copy Site 1 section 149 times , then go thru and select all cells in site 2, Find Site__1 replace with Site__2, Move to next section , Find Site__1 replace with Site__3 etc etc
Right now i have a macro created that moves the cursor and selects the range to do the find and replace but I need help with the actual find and replace section and would love for it to increment
here is a macro i recorded for the find and replace part
'
'
Ideally the macro asks me for my start value and end value and just increments the number...
each line has a unique count that comes from a named cell such as Site__1_Widget2_qty, Site__1_Widget3_QTY etc
What i do when I need to make changes is delete sites 2 thru 150, Make my additions or deletions to site 1, Copy Site 1 section 149 times , then go thru and select all cells in site 2, Find Site__1 replace with Site__2, Move to next section , Find Site__1 replace with Site__3 etc etc
Right now i have a macro created that moves the cursor and selects the range to do the find and replace but I need help with the actual find and replace section and would love for it to increment
Code:
Sub select_rows()
'macro to move to next site and select all entries
ActiveCell.Offset(112, 0).Select
Range(ActiveCell, ActiveCell.Offset(107, 7)).Select
End Sub
here is a macro i recorded for the find and replace part
'
'
Code:
Sub findreplace()
' test
'
'
Selection.Replace What:="Site__1", Replacement:="Site__2", LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Ideally the macro asks me for my start value and end value and just increments the number...
Last edited: