+ Reply to Thread
Results 1 to 6 of 6

Error trying to insert fomrula from VBE

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Italy
    MS-Off Ver
    2021 Pro
    Posts
    76

    Error trying to insert fomrula from VBE

    HI ALL !! THANX FOR HELP.... I AM GETTING ERROR TRYNG TO INSERT THIS FORMULA THAT BY ITSELF WORKS PROPERLY IN THE WORKSHEET...
    ERROR 1004

    Sheets("LList").Range("NH1").Formula2 = "=IF(LList!NA1="","",IFERROR(LList!AA1*((LVar!$G$2-MIN(RT!$H$1-LList!NA1,LVar!$G$2))/LVar!$G$2),""))"

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    929

    Re: Error trying to insert fomrula from VBE

    Is there a reason to use .Formula2 ?
    Have a try with:
    Please Login or Register  to view this content.
    Note the extra quotes.
    Difficult is not to know but to share what you know (Han Fei Tzu reworked)

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Italy
    MS-Off Ver
    2021 Pro
    Posts
    76

    Re: Error trying to insert fomrula from VBE

    yes !! i knew it was about quotes..
    but didn't remember how to solve ty !!

  4. #4
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    929

    Re: Error trying to insert fomrula from VBE

    Thanks for the positive feedback, glad having been of some help.

  5. #5
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: Error trying to insert fomrula from VBE

    for easy using chr(34) > translate every quote in cell of sheet to chr(34)
    Please Login or Register  to view this content.
    Last edited by daboho; 05-14-2024 at 09:21 AM.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  6. #6
    Registered User
    Join Date
    04-09-2012
    Location
    Italy
    MS-Off Ver
    2021 Pro
    Posts
    76

    Re: Error trying to insert fomrula from VBE

    ok !! tyvm !!

+ 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. Method 'Fomrula' of object 'Range' failed
    By mp3909 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2020, 12:51 PM
  2. Method 'Fomrula' of object 'Range' failed
    By mp3909 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2019, 09:46 AM
  3. [SOLVED] Make Fomrula Shorter..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-12-2017, 12:27 PM
  4. Need vba to fill fomrula across range depends upon bankcode end in row 11:11
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2016, 03:10 AM
  5. [SOLVED] Conditional Formatting Fomrula
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2015, 02:30 AM
  6. [SOLVED] Insert Row throws error "Insert Method of Range class failed"
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2015, 11:30 AM
  7. [SOLVED] Can i create my own fomrula made up from several excel ones?
    By James Cornthwaite in forum Excel General
    Replies: 1
    Last Post: 05-13-2006, 12:09 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