Paste link of "new" rows

Prinel01

New Member
Joined
Sep 12, 2008
Messages
8
On Sheet1, I do have info from A1 - A10.

I copy it, and paste link it on sheet2.

If I add new info in Sheet1 next time (I use a program which populate info auto on sheet1), but this time the info is from A1 - A15.

How do I make sure that ALL the info on sheet1 are selected, and not only up to A10.

It can happen that the next time info is on A1 - A100.

Surely I do not want to select "empty" cells?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try this...

Code:
Dim lastrow As Integer

lastrow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row

'then in your selection code...
Range("A1:A" & lastrow).Select

Chuck
 
Upvote 0
Try this...

Code:
Dim lastrow As Integer

lastrow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row

'then in your selection code...
Range("A1:A" & lastrow).Select

Chuck

Chuck

Thanks for your reply...

Is there not a option whereby a normal Excel user can select the area with keystrokes (Alt Shift Down Arrow?) and paste link? I think to ask a user to do the above will not work.

Regards
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top