+ Reply to Thread
Results 1 to 4 of 4

Where did I come from in Workbook_SheetSelectionChange?

  1. #1
    Registered User
    Join Date
    03-10-2013
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    62

    Where did I come from in Workbook_SheetSelectionChange?

    Hi All:

    I want to disable copy and paste if the user does not copy to the same column. It is therefore important that I know which cell she was on when she pressed CTRL-C. In the Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) method, there is reference to the target cell (Target.Cells.Column), but I can't find a ref to the origin cell.

    How can I accomplish what I want to do?

    Thanks,

    Yossi

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Where did I come from in Workbook_SheetSelectionChange?

    Maybe?
    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    03-10-2013
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Where did I come from in Workbook_SheetSelectionChange?

    Great! Thanks.

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Where did I come from in Workbook_SheetSelectionChange?

    If you are happy with the solution please mark the thread as [SOVLED] using the thread tools at the top.

    On any thread you can show appreciation to those who have helped you by clicking the * below their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Disable a Private Sub Workbook_SheetSelectionChange when runnign a specific Macro
    By jshaw82 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-12-2013, 04:54 PM
  2. Restrict Workbook_SheetSelectionChange to only occur after another macro has finished
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2012, 08:23 PM
  3. Improving Workbook_SheetSelectionChange for enhanced Autofiltering
    By aafraga in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2006, 08:20 AM
  4. [SOLVED] [SOLVED] Workbook_SheetSelectionChange
    By R.VENKATARAMAN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2005, 08:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1