+ Reply to Thread
Results 1 to 6 of 6

Translate formula to VBA code please :)

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Translate formula to VBA code please :)

    Good morning all,

    Would someone be kind enough to take my two formula's below and translate them to what it would be in VBA?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Kind Regards

    Rich

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

    Re: Translate formula to VBA code please :)


    Hi,

    using Evaluate method, the formula is the same, see in VBA inner help …

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Translate formula to VBA code please :)

    you mean something like this?

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Translate formula to VBA code please :)

    thanks for the responses.
    I really should have been a little more thorough lol.
    Already have a boat load of VBA in my sheet, basically it tracks the days picks/stock moves/replens etc.
    When i started this workbook there was a formula in every cell, the formula for one section looked like:
    Please Login or Register  to view this content.
    After going through this forum the formulas were taken out of the sheet and put into VBA instead, it ended up like:
    Please Login or Register  to view this content.
    Sorry, i was asking the forum to guess what i was already working with - lesson learned.

    Does that help you to help me a little more?

    Regards
    Rich

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Translate formula to VBA code please :)

    not really.

    if you have that code what is it you want? I'm assuming you can simply make the replace of range references, the only complicated issue us the double quotes within quotes.

  6. #6
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Translate formula to VBA code please :)

    valid point, i'll try that

+ 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. Macro: translate text from cell using google translate
    By Marc_excel_tips in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-05-2021, 06:18 AM
  2. [SOLVED] Translate array formula to VBA code
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2015, 04:49 PM
  3. Sample Translate English to Arabic Text Using MS Translate
    By pidyok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 08:18 AM
  4. Translate Formula to VBA Code
    By mkeys4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 12:44 PM
  5. Translate VB.net code into VBA
    By karo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 01:50 PM
  6. Replies: 4
    Last Post: 04-27-2006, 02:09 PM
  7. translate ws formula to vba code
    By L Scholes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2006, 10:40 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