Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Paste Question

I just can't figure out how to paste something that I've previously copied
into this selection. I've confirmed that last+1 and Last1 are real values.
DestSh is also not always the active sheet.

DestSh.Range("A" & Last + 1 & ":" & "A" & Last1).Select

I'm sure someone out there in the ether knows exactly what to do.

Thanks,
Barb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Paste Question

DestSh must be the activesheet if you are going to select a range within
that sheet.

DestSh.Activate
DestSh.Range("A" & Last + 1 & ":" & "A" & Last1).Select

Of course you can do a copy and paste without selecting the destination
range.

Other problems might be that your code alters something that clears the
clipboard before you get to your paste command although there is nothing in
the code you show that involves either a copy or a paste.

--
Regards,
Tom Ogilvy

"Barb Reinhardt" wrote in message
...
I just can't figure out how to paste something that I've previously copied
into this selection. I've confirmed that last+1 and Last1 are real

values.
DestSh is also not always the active sheet.

DestSh.Range("A" & Last + 1 & ":" & "A" & Last1).Select

I'm sure someone out there in the ether knows exactly what to do.

Thanks,
Barb



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
Copy and Paste Question stew Excel Discussion (Misc queries) 12 November 9th 08 07:45 PM
Copy/Paste Question DoubleZ Excel Discussion (Misc queries) 3 September 24th 08 11:13 PM
Paste Link Question Justyna Excel Discussion (Misc queries) 5 August 29th 07 02:16 PM
Paste question SteveR Excel Worksheet Functions 1 August 30th 05 10:36 PM
Simple Paste Question shawn Excel Programming 2 September 23rd 04 02:40 PM


All times are GMT +1. The time now is 05:17 AM.

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

About Us

"It's about Microsoft Excel"