+ Reply to Thread
Results 1 to 4 of 4

Formula Editor/Bar in UserForm TextBox?

  1. #1
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Formula Editor/Bar in UserForm TextBox?

    Hi,

    I have a Userform w/ text boxes who's inputted value populates a certain cell (currently only supports static values).
    Is it possible to have a userform textbox mimic a formula editor/bar so that the imputted values can be formulas that you can either type or click the relevant cells to write?

    Example of the formula editor/bar I'm thiking of -- (basically can i add this to a user form)?:

    formula bar.png

    This way, end users can write a formula and that formula will be the text box's value, which will then populate the predetermined cell -- still as a formula (i.e. the value in the cell that the texbox populates is not static, but a dynamic formula)

    This would help a ton, if possible!
    Let me know if unclear

    Thank you!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Formula Editor/Bar in UserForm TextBox?

    Try this syntax.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Re: Formula Editor/Bar in UserForm TextBox?

    Quote Originally Posted by AlphaFrog View Post
    Try this syntax.

    Please Login or Register  to view this content.
    This doesn't work like a formula bar -- you can't click the cells you're referencing, and you'd have to type out the formula like text.
    Is there a way to make it work like a formula bar, or just add a formula bar to the textbox (see the image in original post)?
    Thanks

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Formula Editor/Bar in UserForm TextBox?

    Quote Originally Posted by xtinct2 View Post
    This doesn't work like a formula bar -- you can't click the cells you're referencing, and you'd have to type out the formula like text.
    Is there a way to make it work like a formula bar, or just add a formula bar to the textbox (see the image in original post)?
    Thanks
    Not that I know of.

+ 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] Excel 2010 - Userform - display date from textbox in a label or textbox in 'ddd' format
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2015, 10:54 PM
  2. Replies: 23
    Last Post: 07-12-2014, 07:09 PM
  3. Userform textbox value with formula creates a result in excel
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2013, 05:21 PM
  4. Userform TextBox.Value inside Formula, in VBA code
    By schneij in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 06:03 PM
  5. Userform Textbox Formula
    By techteam in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-29-2011, 06:06 PM
  6. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 PM
  7. Textbox Hyperlink opens VB Editor at Specific Module
    By Neily in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2005, 08:05 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