Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy & paste worksheet with print settings into new worksheet | Excel Discussion (Misc queries) | |||
Cut and Paste from one worksheet to another? | Excel Discussion (Misc queries) | |||
Need to cut and paste worksheet | New Users to Excel | |||
excel 97: copy and paste values from one worksheet to another worksheet | Excel Programming | |||
excel 97: copy and paste values from one worksheet to another worksheet | Excel Programming |