Guzzlr
Well-known Member
- Joined
- Apr 20, 2009
- Messages
- 982
- Office Version
- 2021
- Platform
- Windows
Code:
Range("E7").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-1],RC[24],RC[25])"
Range("E8").Select
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Range("E7").Select
Selection.AutoFill Destination:=Range("E7:E179"), Type:=xlFillDefault
I used the Recorder to insert the application Concatenate. The problem here is the range down to E179 will change, every time with new data input. It may only go to E100, or E...whatever. I don't know how to have the application stop In Column E when it reaches the end of the current data set.
If I say Range("E7:E1000") it may not be far enough...or way too far.
How can I make it stop where it needs to stop at the end where there is no more data to concatenate?
Thanks for the help