Can a Cell Formula run a Macro
Manage your personal finances in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Can a Cell Formula run a Macro

  1. #1
    Board Regular
    Join Date
    Apr 2002
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Basically, if a cell in my worksheet equals "1", run Macro X. Is there a formula I can put into the worksheet (i.e. =if(B47=1,application.run "macro",0) which of course doesn't work!, or do I have to use some code in the macro that watches the value of the cell?

    Thanks!

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I don't think so, but the second option you suggest is possible and there are several versions of that on the message board e.g.

    http://www.mrexcel.com/board/viewtop...c=4474&forum=2

  3. #3
    Board Regular
    Join Date
    Apr 2002
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Thanks!

    That works & got me to the next step!

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com