+ Reply to Thread
Results 1 to 2 of 2

Macro to store formulas

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    san francisco, ca
    MS-Off Ver
    Excel2021
    Posts
    28

    Macro to store formulas

    Is it possible to write a sub that allows you to overwrite cells containing pre-existing formulas with both/and [1] new formulas [2] constants, but have the ability to click a user inserted form control button so that you can return to the pre-existing formulas if you desire? Basically, i would be toggling between [a] an existing cell formula [b] a cell formula i overwrite the existing cell formula with? Need to retain ability to revert back to the existing cell formula. Are there any good examples?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macro to store formulas

    Hi wbsgn,

    You certainly can build a macro to put a formula into any cell. You could also ask which formula you want in the cell. All this requires some VBA knowledge. But, without using VBA you could have two formula in different rows, next to each other and hide the row for the formula you don't want. This wouldn't require any VBA and might work better.. Hiding rows or columns is much easier than using VBA to put in those formulas.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. [SOLVED] Store a lot of formulas into an array
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-31-2016, 04:45 PM
  2. can i store percentage formulas to reuse them?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 07:05 PM
  3. [SOLVED] can i store percentage formulas to reuse them?
    By Jess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. can i store percentage formulas to reuse them?
    By Jess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] can i store percentage formulas to reuse them?
    By Jess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. can i store percentage formulas to reuse them?
    By Jess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. can i store percentage formulas to reuse them?
    By Jess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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