Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need to Change ActiveCell

I am trying to copy and paste from one worksheet to another however, I
am trying to paste all the data to the new worksheet in Column A and
last occupied row.

I can copy all the data that I need fine and I can find the last
occupied row of the destination worksheet but the problem comes with
the pasting.

If I simply do a ".Paste" it will paste the data in the last cell that
I actually clicked on with my mouse (B7, D14, ....) It doesnt matter.
What I need help in determining is how to change the active cell to the
last occupied row of column A of the destination worksheet regardless
of where the last active cell actually is.

  #2   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default Need to Change ActiveCell

HI

Do this before you paste. It probabley can be done without selecting but
here you go anyway


your copy code goes here

Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select

Best N10



wrot
e in message ps.com...
I am trying to copy and paste from one worksheet to another however, I
am trying to paste all the data to the new worksheet in Column A and
last occupied row.

I can copy all the data that I need fine and I can find the last
occupied row of the destination worksheet but the problem comes with
the pasting.

If I simply do a ".Paste" it will paste the data in the last cell that
I actually clicked on with my mouse (B7, D14, ....) It doesnt matter.
What I need help in determining is how to change the active cell to the
last occupied row of column A of the destination worksheet regardless
of where the last active cell actually is.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
chart MAcro to change on activecell flow23 Excel Discussion (Misc queries) 0 December 7th 05 04:46 PM
Is there a VBA Event to Detect Change in ActiveCell Focus? Larry A[_3_] Excel Programming 4 September 16th 05 03:23 AM
impossible to change the activecell??? John T Ingato Excel Programming 1 November 10th 03 07:46 AM
code to change activecell neopolitan Excel Programming 2 October 2nd 03 09:05 PM


All times are GMT +1. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"