+ Reply to Thread
Results 1 to 5 of 5

Get Formula or FormulaArray from InputBox

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Get Formula or FormulaArray from InputBox

    Hello,

    I am wondering how do I capture if the formula that user has put in the InputBox if it's a regular formula or an Array Formula.

    PS: I'm trying to avoid userform completely here

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Salut !

    Good question ! Maybe I'm wrong but I think it can be only a regular formula, did you try ?

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Get Formula or FormulaArray from InputBox

    Yes...regular formula has no problem.

    The problem that I'm facing here is that if user were to have an array formula as their input, how am I going to handle it then.

    That's why I need to know if it's a regular formula or an array formula.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Try first adding the famous { } characters we can see when it's a valid array formula inside a cell.
    If the input box accepts them, it will be easy to detect the first character and to use the appropriate property accordingly …

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Get Formula or FormulaArray from InputBox

    That's what I thought...when I add the {}, it returns as a string instead of a formula

+ 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. .FormulaArray causes Run Time Error 1004, Unable to set the FormulaArray property
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2017, 03:12 PM
  2. Semi-Urgent: Work Around for Formula & FormulaArray Size Limit
    By JaedenRuiner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2015, 01:25 AM
  3. long formula to vba macro - error 1004 unable to set formulaarray property
    By desibabuji in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2013, 06:18 AM
  4. [SOLVED] Unable to get result Using FormulaArray or Evaluate with Array Formula in VBA
    By :) Sixthsense :) in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-30-2013, 11:27 PM
  5. Inserting an array formula with VBA FormulaArray property works strange enough
    By Tchesko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 11:32 AM
  6. Convert Excel FormulaArray to VBA formula?
    By bassima in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2011, 10:59 PM
  7. FormulaArray Which Delivers Text Instead of Formula
    By inwalkedbud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2007, 02:05 PM

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