Results 1 to 3 of 3

Thread: Basic Formula to Button

  1. #1
    Board Regular
    Join Date
    Nov 2009
    Posts
    87
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Basic Formula to Button

    Hi All,

    I have a formula that returns the last text cell which is =INDEX($F$6:$F$13,MATCH(REPT("z",255),$F$6:$F$13)) and it works well.

    How do I go about adding that same formula to a form control button?

    do I use ActiveCell.Formula?? along with my =INDEX($F$6:$F$13,MATCH(REPT("z",255),$F$6:$F$13)) somehow??

    Thanks in advance

  2. #2
    Board Regular Michael M's Avatar
    Join Date
    Oct 2005
    Location
    South Western NSW
    Posts
    17,888
    Post Thanks / Like
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Basic Formula to Button

    Do you mean....assuming Range("A1") to be where the formula needs to be placed !

    Code:
    Range("A1").formula="=INDEX($F$6:$F$13,MATCH(REPT(""z"",255),$F$6:$F$13))"
    Regards
    Michael M
    ---------------------------------------
    The more I learn, the less I seem to know.....A Please and Thank You cost nothing !
    It's easier to debug if we can see the whole macro !
    Home 2007 & 2013

    - Posting guidelines, forum rules and terms of use

    - To download Mr Excel HTML Maker

    - Try searching for your answer first, see how

    - Read the FAQs

    - List of BB codes


    [CODE]Place Your Code Here[/CODE]

  3. #3
    Board Regular
    Join Date
    Nov 2009
    Posts
    87
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Basic Formula to Button

    Exactly that!

    Thanks

Some videos you may like

User Tag List

Tags for this Thread

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
  •