Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a dynamic row

Status
Not open for further replies.

lpsmith

Technical User
Jul 8, 2004
4
US
Hi,

I would like to find out how to create a macro that will copy a set number of cells in a column no matter where the starting point is. For example I can copy 98 cells in column B starting at B2 or maybe starting at B34 or if I make G3 the active cell then when I run the Macro it will copy the next 98 cells below which ever cell I select.)

Thanks in advance for your help

L.Smith
 
Hey bro,

I think you want to post this in the VBA forum. Common posters in there are more likely to have dealt with this.

Good luck,

Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
L.Smith,
Code:
  range(activecell, activecell.offset(97,0)).copy
If you know the destination...
Code:
  range(activecell, activecell.offset(97,0)).copy Worksheets(2).[B1]


Skip,

Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top