Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default on paste, go to another worksheet

Please help! I want to write a macro so that whenever I paste some
information in worksheet A, it will direct me to worksheet B.

Is there any way to do this in excel?

Thanks,
JL
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 1
Default on paste, go to another worksheet

Julie,

Try:

Sub myPaste()
ActiveSheet.Paste
Application.CutCopyMode = False
Sheets("Sheet2").Select
End Sub

Then in Excel, go Tools, Macro, Macros....
Select myPaste from the list of macros, hit the Options... button,
and assign control v as the shortcut key.

Then anytime the user uses control-v to paste, it'll paste and then
move over to Sheet2.

--Tom.

Julie L wrote:
Please help! I want to write a macro so that whenever I paste some
information in worksheet A, it will direct me to worksheet B.

Is there any way to do this in excel?

Thanks,
JL


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default on paste, go to another worksheet

Tom,

Thanks for your advice. This macro will work perfertly if the user is using
crtl+v to paste. However, if the user other methods to paste (i.e. by
clicking on the Paste icon), then the macro won't work.

Do you have other suggestion so that when a user paste the information in
worksheet A using any methods he/she chose to, Excel will paste the info into
that sheet and go to worksheet B afterward.

Thanks,

Julia

"Tom" wrote:

Julie,

Try:

Sub myPaste()
ActiveSheet.Paste
Application.CutCopyMode = False
Sheets("Sheet2").Select
End Sub

Then in Excel, go Tools, Macro, Macros....
Select myPaste from the list of macros, hit the Options... button,
and assign control v as the shortcut key.

Then anytime the user uses control-v to paste, it'll paste and then
move over to Sheet2.

--Tom.

Julie L wrote:
Please help! I want to write a macro so that whenever I paste some
information in worksheet A, it will direct me to worksheet B.

Is there any way to do this in excel?

Thanks,
JL



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 & paste worksheet with print settings into new worksheet Larry Ohio Excel Discussion (Misc queries) 1 December 23rd 09 05:17 PM
Cut and Paste from one worksheet to another? Labrador_Pride Excel Discussion (Misc queries) 1 June 12th 09 09:30 PM
Need to cut and paste worksheet R New Users to Excel 1 February 13th 06 08:37 PM
excel 97: copy and paste values from one worksheet to another worksheet JMCN Excel Programming 2 September 23rd 03 01:32 PM
excel 97: copy and paste values from one worksheet to another worksheet Kathy[_5_] Excel Programming 0 September 21st 03 03:03 PM


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