+ Reply to Thread
Results 1 to 7 of 7

Can't get Worksheet_Selection Change to work

  1. #1
    Registered User
    Join Date
    04-18-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Can't get Worksheet_Selection Change to work

    Hi,

    I've got a spreadsheet that I want to log values from another worksheet when the value in Cell B4 changes. The trouble is that as it only references the cell ie.

    Please Login or Register  to view this content.
    the macro to copy the text doesn't work.

    The code I currently have is listed below

    Please Login or Register  to view this content.
    Any help on this would be much appreciated.

    Many thanks,
    twills

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Can't get Worksheet_Selection Change to work

    tHIS MIGHT BE WHAT YOU MEAN
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-18-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Can't get Worksheet_Selection Change to work

    RoyUK,

    Many thanks for the quick response.

    I changed the code as you suggested, but alas the problem remains.

    The value I see in Cell B4 is a time that is counting down second by second which is referenced from another worksheet. So although the value I see in the cell is changing second by second, the actual formula in the cell remains unchanged and so (I believe) the macro doesn't get called.

    Many thanks,
    Tim

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Can't get Worksheet_Selection Change to work

    A formula will not trigger the change event

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Can't get Worksheet_Selection Change to work

    Try the calculate event

  6. #6
    Registered User
    Join Date
    04-18-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Can't get Worksheet_Selection Change to work

    davesexcel,

    Many thanks for the help, the Worksheet_Selection change did indeed work, however it seems to execute twice ie. the lines I want to copy get copied twice and I'm not entirely sure why....

    The code I have at the moment is

    Please Login or Register  to view this content.
    Any help on this would be most appreciated!

    Kindest Regards,
    twills

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Can't get Worksheet_Selection Change to work

    You may have to supply a sample workbook, with the code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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