Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50165

VBA Code to Find All, Activate cells, copy row

$
0
0
Hi Everyone,

I'm still fairly new to using VBA and I was wondering if someone would be able to help with this.

I'm trying to;

1) find "all" cells that contains a variable/text that I type in an input box
2) highlight the rows that the found cells are in
3) Copy the highlighted rows

After that, I'll paste the values into another spreadsheet.

I tried using the recorder but it doesn't seem to work for that process.

Without using code, the steps would be;

- CTRL + F
- In the "Find What Field" - here I would input the data that I want to find
- Click FIND ALL button
- CTRL + A
- Close Find and Replace box
- CTRL +SHIFT + Arrow Right
- CTRL + C

Thanks in advance

Viewing all articles
Browse latest Browse all 50165

Trending Articles