javelinmania
New Member
- Joined
- Sep 23, 2011
- Messages
- 10
I am trying to use Macro Record to reformat a spreadsheet. In it, I need to insert a column and then paste a formula into each row. I tried to use the Goto last cell function and the using the cursor go the proper column and then insert my formula and then past to the top.
Unfortunately, when I look at the code created, it has hardcode cell addresses (row and column). That won't work the next time when I have a different number of rows.
So how can I insert a formula in line two and then copy and past it to all rows using Macro Record? I can edit the generated macro if it isn't too difficult. Everything else I need to do works - just this one issue.
Unfortunately, when I look at the code created, it has hardcode cell addresses (row and column). That won't work the next time when I have a different number of rows.
So how can I insert a formula in line two and then copy and past it to all rows using Macro Record? I can edit the generated macro if it isn't too difficult. Everything else I need to do works - just this one issue.