+ Reply to Thread
Results 1 to 5 of 5

How to convert Excel formula into a VBA formula?

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    184

    How to convert Excel formula into a VBA formula?

    Hi Guys,

    I have the formula below that I wrote in Excel. I want to convert it into a VBA formula. Can someone help me convert this excel formula into a VBA formula?

    Please Login or Register  to view this content.

    I wrote this in VBA and it's giving me a syntax error.

    Please Login or Register  to view this content.

    Please see attached for the sample workbook.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to convert Excel formula into a VBA formula?

    Double up on all the double quotes in your formula.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to convert Excel formula into a VBA formula?

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    184

    Re: How to convert Excel formula into a VBA formula?

    I got it to work. Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to convert Excel formula into a VBA formula?

    You're welcome.

+ 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. Convert Excel formula to SQL
    By hc91 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2015, 04:12 AM
  2. [SOLVED] Convert formula fra excel to VBA
    By Stroem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2013, 05:57 AM
  3. Replies: 5
    Last Post: 04-12-2011, 11:12 PM
  4. convert lotus formula to excel formula
    By Traymond in forum Excel General
    Replies: 2
    Last Post: 11-19-2010, 02:03 PM
  5. Replies: 3
    Last Post: 05-18-2010, 06:14 AM
  6. [SOLVED] vb help, convert excel formula to vb formula
    By Michael A in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2006, 07:35 AM
  7. Convert Excel Formula to VBA
    By John V in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2005, 03:10 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