+ Reply to Thread
Results 1 to 4 of 4

run macro by changing cells value

  1. #1
    Registered User
    Join Date
    05-28-2008
    Posts
    4

    run macro by changing cells value

    Hi,

    While I'm not all that bad with Excel I've got still a LOT to learn regarding VBA, so please forgive me bit noobish question...

    I got a simple macro, I would like to run everytime any cell in column A (or at selected range) is changed. Can it be done??

    Also, is there any way to refer to last changed cell (something like "ActiveCell", but refering not to the selected cell, but to the cell that was changed as last one)???

    Thanks and Regards

    Greg

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Use the Worksheet_SelectionChange event
    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
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Hi,
    This code would go into a worksheet module
    Please Login or Register  to view this content.
    This example refers to the first empty row after the last entry in column A
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-28-2008
    Posts
    4
    With your help it works as I wanted, so what can I say... You are my new Heroes

    Thanks a lot for your help mates.

    Greg

+ 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