RookieExcel22
New Member
- Joined
- Aug 11, 2023
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
Hi,
I have text "Comp43" that should always be in A4, but rarely could be in another cell such as A6 or B5 etc. I am hoping there is a way for VBA to find the cell that this value is in and then copy all of the data below it? For example if it appears in A4, it would copy paste from A5 to the last row. If it appears in B5, it would copy from B6 to the last row, etc.
Thank you!
I have text "Comp43" that should always be in A4, but rarely could be in another cell such as A6 or B5 etc. I am hoping there is a way for VBA to find the cell that this value is in and then copy all of the data below it? For example if it appears in A4, it would copy paste from A5 to the last row. If it appears in B5, it would copy from B6 to the last row, etc.
Thank you!