Try it out.
ActiveCell.Resize(49,1).Copy ActiveCell.Offset(,1)
Juan Pablo G.
Hi Bill,
Use the ActiveCell object, for example in your case to copy the range into the next column:
Range(ActiveCell, ActiveCell.End(xlDown)).Copy
ActiveCell.Offset(0, 1).PasteSpecial (xlPasteAll)
Application.CutCopyMode = False
Tom Urtis
Neat suggestion Juan Pablo, definitely more code-efficient than mine!! (nt)
Learned that trick from MrExcel himself (NT)
Now c'mon, don't leave me hanging here!! How does the 49 become relevant, and is it a number code among other such number series for function/method activity?? Looks really efficient.
Thank you gentlemen.
An excellently efficient line of code, to be sure!
Regards,
Bill Robbins.
Tom, the resize event works exactly the same as selecting a range in a worksheet, if you take a look at the Name Box, you'll something like 5Rx3C, that's the same parameters that the Resize take, for example, Range("A1").Resize(5,3) It's really nice, and efficient, i agree.
Juan Pablo G. Now c'mon, don't leave me hanging here!! How does the 49 become relevant, and is it a number code among other such number series for function/method activity?? Looks really efficient.