+ Reply to Thread
Results 1 to 4 of 4

Is there a way to chnage cell formulas to VBA module?

  1. #1
    Registered User
    Join Date
    02-02-2007
    Posts
    4

    Post Is there a way to chnage cell formulas to VBA module?

    hello every body
    I have an excel sheet with hundreds of functions in cells I was thinking if there is away to change them all to vba as modules
    can that be accomplished?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by excel_2007_user
    hello every body
    I have an excel sheet with hundreds of functions in cells I was thinking if there is away to change them all to vba as modules
    can that be accomplished?
    Hi,

    I'm not sure why you would want to delay processing on your speadsheets this way, but I believe that you would need to write some code that read each formula and provided the necassary VB code in a Function sub, and then have the cell call that function with the required parameters.

    . . but as I said I cannot understand why you would wish to do this.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    02-02-2007
    Posts
    4
    Thanks Bryan Hessey

    It may seem strange , you are wright

    but it's an old spreadsheet with thousands of cells full of hundreds of formulas I tried to get use of them but it's very hard, so I thought there must be a tool to do this job around instead of reinventing the wheel !

    Getting them in a module or more will ease the process

    do you think there is a tool around for this ?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    I seriously doubt you are going to find a utility that will:

    1) Study a complex spreadsheet with hundreds of formulas and decipher the logic that went into the spreadsheet and then
    2) Create a series of VBA Sub and/or Function procedures that will recreate that same logic.

    You can get a VBA macro that will copy a spreadsheet, but it sounds to me like you want something a lot more involved than that.

    but it's an old spreadsheet with thousands of cells full of hundreds of formulas I tried to get use of them but it's very hard, so I thought there must be a tool to do this job around instead of reinventing the wheel !
    I don't know what your spreadsheet is supposed to do. Sometimes I will get in a project similar to a project that I did a few years previous. Even using spreadsheets I created, a lot of times I find it easier to start from scratch (aka reinvent the wheel) than try to figure out what I was thinking back then and adapt it to what I need to do now.

    good luck.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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