LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Activate/Select Problems

When I use the following code, everything works fine(I had a row
selected for copying in the first wrksheet. The row is copied to Row 54
of present sheet & Row2 of the 2nd sheet

Sub CopyTo()
Selection.Copy
Range("A54").PasteSpecial

Worksheets("Sent Messages").Range("A2:B2").PasteSpecial
End Sub
--------------

However, I need to install a sub that will detect if the row is already
populated and move down the column to the last row.

When I try:
Worksheets("Sent Messages").Range("A2:B2").Select
or
Worksheets("Sent Messages").Range("A2:B2").Activate

so I can proceed, I get an error message.

What am I doing wrong?
Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
.Activate vs. .Select in VBA Dave F Excel Discussion (Misc queries) 1 January 24th 07 03:41 PM
select vs activate Ron de Bruin Excel Programming 0 September 9th 04 04:05 PM
select vs activate Chip Pearson Excel Programming 0 September 9th 04 04:02 PM
Difference between .Activate and .Select JMMach, MCSC Excel Programming 3 August 24th 04 05:47 PM
Any difference between Sheets Activate and Select? Don Wiss Excel Programming 1 October 28th 03 12:46 AM


All times are GMT +1. The time now is 10:55 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"