Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Copy data in a row without referring to the row #

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Art MacNeil - 14 Jan 2006 01:03 GMT
Hello,

 Is there a way for a macro to copy data in a row without referring to the
actual row number?  I have a spreadsheet with data on certain rows and I
want to copy that data to a new spreadsheet.  The problem is the relevant
row numbers tends to shift over time. Today the data I need is on Rows 16,
29, 55, 70 etc.  Over time these tend to change so in a few months the data
I need may be in Rows 16, 32, 59 and 85. Currently, my Macro for row 16,
looks like this:
Rows("16:16").Copy

I then copy and use Paste special to get that data.

Row 32 looks like:
Rows("29:29").Copy

I'd like to find a way to copy the current row, without referring to the row
number.

Any help would be greatly appreciated,

Thank you,

Art.
Dave Peterson - 14 Jan 2006 01:07 GMT
Activecell.entirerow.copy

???

> Hello,
>
[quoted text clipped - 20 lines]
>
> Art.

Signature

Dave Peterson

Art MacNeil - 14 Jan 2006 01:16 GMT
Oh my.  That was easy wasn't it.  Can you tell I'm new to Macro's?

Thank you for your help,

Art.

> Activecell.entirerow.copy
>
[quoted text clipped - 28 lines]
>>
>> Art.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.