Thanks for the reply.
This code is a part of a bigger script which will go through 100s of excel spreadsheets to fix existing formulas so I want it to work like this:
1. Go into spreadsheet
2. Check the Column B to find how many rows are relevant. Rows are numbered QF1 QF2 QF3 QF4 etc. All spreadsheets have different amount of rows, I only want to focus on rows that have something in them.
3. Save the range of rows in which QF was found
4. Insert formulas into other columns but only in those relevant rows.
So the bit below should look at Column B and save the starting cell and ending cell:
Then I want to use those starting and ending cells to insert a formula into these relevant rows, but in neighboring column. I replaced the actual formula with =2+2 to simplify it, the formula i need works fine when i
specify the range like this:
But as I want to insert the formulas only into to the relevant rows in which "QF" was found, I am trying to do that by using the saved start and end cells from the loop above:
For some reason I am not able to attach the spreadsheet file?
Bookmarks