+ Reply to Thread
Results 1 to 6 of 6

formula to VBA Code

  1. #1
    Registered User
    Join Date
    04-07-2019
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    43

    formula to VBA Code

    My greetings to all the experts,
    I need to convert table and formula to VBA. I do not know much about VBA, I will not be able to explain properly but after seeing Excel you will understand.
    Attached Files Attached Files
    Last edited by jessica0007; 09-25-2020 at 05:17 AM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: formula to VBA Code

    The simplest way is to use the Macro recorder.

    Start the recorder

    select every cell in turn and select the formula bar and press enter.

    Once you have done this for all cells stop the macro recorder

    Then tidy up your recorded macro.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    04-07-2019
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    43

    Re: formula to VBA Code

    Need to change the whole formula with VBA code, I already know that it is possible with small code like ex. Range("H3").Formula = "=
    But I do not want that.
    Last edited by jessica0007; 09-25-2020 at 05:16 AM.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: formula to VBA Code

    Hi Jessica.

    Your thread Title threw me.

    Your title should have been something like: Convert Index/Match formula into a User Defined Function.

    Administrative Note:


    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)


    If you paste the following code into a macro module. then the formula =test(640,606) 0r =test(f3, g3) will return your value. [ I hope ].

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 09-25-2020 at 05:21 AM.

  5. #5
    Registered User
    Join Date
    04-07-2019
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    43

    Re: formula to VBA Code

    I'm impressed!! it works perfectly!
    thank you very much!

  6. #6
    Registered User
    Join Date
    04-07-2019
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    43

    Re: formula to VBA Code

    mehmetcik,

    I will focus on my thread title next time as well as I will request expert instead of Demand. Forgive me for my words.

    thank you

+ 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. writing vba code to fill in column of sheet, formula works vba code will not
    By pdx2245 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2019, 05:15 PM
  2. Writing a Formula using R1C1 code in VBA code
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-15-2014, 11:06 AM
  3. Replies: 1
    Last Post: 11-13-2013, 10:28 AM
  4. Advice and help with a copy past code or filldown formula code
    By KELLIS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2013, 02:07 PM
  5. Help: formula or VB code to implement voting system code
    By cdsc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 01:23 AM
  6. [SOLVED] Array Formula vs vBa code - How To Modify My Messy Code To One Of Those
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2012, 12:04 AM
  7. Sumproduct formula:Empl Code Payroll Code Amount
    By bluemeg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2009, 02:08 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