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: 16
Default Select Worksheet Where Data is Pasted

Hi All,

I would appreciate help with the following:

I have a user form with 2 regedit boxes on it.

The first regedit box allows the user to select a range to copy while
the second one allows the user to select a range to paste too.

My problem is that if the copy range is on a different worksheet then
the worksheet to which the values are pasted the code always
returns to the worksheet where the data was copied from when
completed. I simply want the code to exit on the worksheet where the
data was
pasted.

For example, if a user selects range A1:A5 on sheet 1 and then decides
to paste the range to C1 :C5 on sheet 3, worksheet 3 should be the
active
worksheet once the code has been executed.

Seems like it should be pretty simple but it is driving me crazy.

Thanks,

Steve
 
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
Formula changes when row is pasted in a different worksheet Tendresse Excel Discussion (Misc queries) 1 August 22nd 07 02:34 PM
Select data onto new worksheet RBW Excel Discussion (Misc queries) 0 August 2nd 07 06:16 PM
Validating data pasted into worksheet Tom F. Excel Discussion (Misc queries) 3 July 20th 05 06:05 PM
Select Data in Worksheet 1 Jim M[_4_] Excel Programming 1 May 13th 04 04:33 PM
Screenshots Pasted into Worksheet Tim Childs Excel Programming 2 September 15th 03 09:14 PM


All times are GMT +1. The time now is 10:01 AM.

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"