+ Reply to Thread
Results 1 to 9 of 9

Application.Worksheetfunction metod

  1. #1
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Application.Worksheetfunction metod

    Hi,
    here post #23
    i wanted to write a UDF without much pain.
    There were formulas on the sheet.
    I macro recorded them, changed links to variants, added formulas to Application.Worksheetfunction. Nothing
    Excel did not understand Find, Search, Iferror, Mod, Mid and etc.
    Here some of the above function are mentioned as canbe used.
    Could you please put me in right direction?

    PS What about using evaluate?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Application.Worksheetfunction metod

    Post what you tried that didn't work, Tim.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Application.Worksheetfunction metod

    Shg, I don't get what you mean. In the file everything works. doesn't it?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Application.Worksheetfunction metod

    I reckon I don't understand your question. What doesn't work that you think should work?

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Application.Worksheetfunction metod

    in the file in D2:I2 there are formulas, which i wanted to use in UDF with minimum adjustments.
    (if there is a working algorithm, why bother to make a new one?)
    and Application.Worksheetfunction. my formulas don't work
    debugger can not understand worksheet functions.
    And i am curios how to work with Application.Worksheetfunction

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Application.Worksheetfunction metod

    Tim, I don't see any VBA that uses Application.WorksheetFunction in that file.

  7. #7
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Application.Worksheetfunction metod

    Me too
    It refused to work
    for example:
    with autorecorder for D2
    ActiveCell.FormulaR1C1 = "=--IFERROR(MID(RC[-3],1,SEARCH(CHAR(39),RC[-3])-1),)"
    i changed it to:
    s1= Application.Worksheetfunction.--IFERROR(MID(s,1,SEARCH(CHAR(39),s)-1),)
    Debugger pointed out that i could not use Iferror and Mid this way.
    And i wonder where i can find an instruction how to use Application.Worksheetfunction metod

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Application.Worksheetfunction metod


  9. #9
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Application.Worksheetfunction metod

    Shg, thanks!
    But i'd like to see slightly different info: how to avoid restrictions of using worksheetfunctions in this method.

+ 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. using application.WorkSheetFunction. in code
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2017, 07:41 AM
  2. Convert to VBA Application.WorksheetFunction
    By kay007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2015, 06:31 PM
  3. [SOLVED] Application.WorksheetFunction vs Application.NormDist
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2014, 06:33 PM
  4. Application, WorksheetFunction or both?
    By Benni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 08:59 PM
  5. Application.WorksheetFunction
    By roger09 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2011, 09:07 AM
  6. [SOLVED] application.worksheetfunction
    By Ozgur Pars in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2006, 03:15 AM
  7. Application.WorksheetFunction._WSFunction
    By R Avery in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2005, 04:06 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