Share via

How can I create a macro that runs the same steps over and over until I stop it with CTRL+Break?

Anonymous
2025-05-01T15:12:42+00:00

I am trying to build aa macro but the record feature is not helping. I'd like to put my cursor in a cell on a spreadsheet, highlight 20 columns to the right, shift+end, arrow down, arrow up one row, ctrl+d and repeat this moving down the worksheet until i stop the macro. Essentially, I am filling ranges of varying lengths with the content of the first row I am highlighting (not a full row, per se, but 20 cells of the row).

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2025-05-01T18:29:26+00:00

No macro needed.

Select columns A:T, then use Ctrl-G Special..... Blanks OK Then type = press the up arrow key once, and press Ctrl-Enter. Then select columns A:T, copy them, and paste special values. And you'll be done, with the exception of the last row of data, which you can then copy and paste for as many rows as you want or need.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-05-01T19:29:46+00:00

    Thank you! This saved me hours of work.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-05-01T17:46:37+00:00

    This is a before and after of what I am trying to achieve. There's approx 180,000 total rows that I am working to fill in.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-05-01T17:05:14+00:00

    Your instructions make no sense (to me, at l;east) - or you are missing steps that you actually want.

    It would be better if you showed a before and after range - and you may not be fast enough to actually control a macro with Ctrl-Break. It would be better to have some other interaction.

    Was this answer helpful?

    0 comments No comments