+ Reply to Thread
Results 1 to 11 of 11

vba code for excel formula

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Post vba code for excel formula

    Hi all,

    I want vba code for my excel formulas, I attached my original sheet and I want vba code for all the formulas in it.
    In my attachment yellow coloured columns contains the formulas based on its left column cell value.


    Thanks in advance

    Dev
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: vba code for excel formula

    Try this macro
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: vba code for excel formula

    Dear kvsrinivasamurthy ,

    Thanks for the code, but I don't want to put any (macro) button on the sheet,Want the code which will work exactly the formula does.without putting any formulas in excel sheet.

    Thanks in advance
    Dev

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: vba code for excel formula

    Try this code
    Please Login or Register  to view this content.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: vba code for excel formula

    Hi Dev

    Is your Pune Sheet complete or might there be additional items?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: vba code for excel formula

    Dear jaslake,

    Yes there will be addition in Pune Sheet.

    Dev.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: vba code for excel formula

    Hi Dev

    Will there be new Formulas with these new additions? Can you supply a Table of all possible Formulas?

  8. #8
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: vba code for excel formula

    Hi jaslake ,

    I have added all the possible new additions and formulas in new attachment (dev sample1).

    Thanks in advance

    Dev
    Attached Files Attached Files

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: vba code for excel formula

    Hi Dev

    The attached File has an "Initial Set Up" routine that creates a Sheet called "Lists". This Sheet contains a Table of all the Formulas as extracted from Sheet Pune. It also CLEARS ALL DATA AND FORMULAS from Sheet Pune, Columns C to the last Column to the Right.

    This Code must be run ONLY ONCE as it destroys all Formulas in Sheet Pune. The Code is in Module 2 and can be executed with CTRL + x
    Please Login or Register  to view this content.
    In Sheet Pune all of the Data Entry Cells have been unlocked (Columns C, E, G, etc to the Right). This Code is in the Workbook Open Event and Protects Sheet Pune but allows Macros to Update the Sheet
    Please Login or Register  to view this content.
    This is the Code that does the Dirty work...it's in the Sheet Module of Pune
    Please Login or Register  to view this content.
    You can add as many Columns to the Right as you wish. You CANNOT add rows (you can but it requires special instructions). Let me know of issues.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: vba code for excel formula

    Dear Sir,

    Thank you so much...


    Dev.

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: vba code for excel formula

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Replies: 1
    Last Post: 11-13-2013, 10:28 AM
  2. how to right excel formula with vba code.
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2013, 04:59 AM
  3. Excel Formula into DBA code
    By moroformat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2013, 04:54 AM
  4. [SOLVED] Change my code into Excel formula code
    By DGARRETT1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-04-2013, 07:51 PM
  5. Excel Formula in VBA code
    By kieranbop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 10:24 AM

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