+ Reply to Thread
Results 1 to 3 of 3

Paste range of formulas to a sheet using Personal Macro Workbook

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    51

    Paste range of formulas to a sheet using Personal Macro Workbook

    I have a spread sheet, and I have a range of formulas on that sheet. I recently made adjustments to the formulas but there are a ton of one off versions of that worksheet. I want to be able to open any one off version of that workbook, run the macro, and my updated range of formulas will be pasted into that old workbook. But I am using the Personal macro file so that I don't have to open up the new file every time.

    So basically, my plan is to paste my new range of formulas onto my personal macro worksheet. Then create a code so that when I open up one of my old workbooks that have outdated formulas, I will run the macro and the new formulas that I have as a range in the personal macro sheet, will be copied and pasted into a specific sheet on the old workbook I have open.

    How would I go about doing this?

    EDIT*** To clarify, I know how to use the personal macro worksheet. My question is strictly about the code for the macro.
    Last edited by Cheeseburger; 06-16-2015 at 12:18 AM.

  2. #2
    Forum Contributor banaanas's Avatar
    Join Date
    08-26-2014
    Location
    Finland
    MS-Off Ver
    2016
    Posts
    199

    Re: Paste range of formulas to a sheet using Personal Macro Workbook

    Why don't you loop through all the excel files automatically?
    Just put them all in a folder and use this code.

    I allredy posted this another thread today, and he got it working.
    Just change the folder where all you excel files is, and then change the Mymacro at the bottom to make the changes you need.
    This code will then loop through all the files, make the changes and save them.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-31-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    51

    Re: Paste range of formulas to a sheet using Personal Macro Workbook

    Unfortunately, I have to do it by the method that I described for several reasons. One of which is I have to decide which files I want to run the macro in, as sometimes I may want to use the old formulas. Also, I share my personal macro file with a colleague as we both use the same macros for our work.

+ 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 to copy formulas from multiple workbooks into new workbook (paste text of formula)
    By robertsfd2002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2014, 12:46 PM
  2. Replies: 1
    Last Post: 05-02-2014, 12:19 PM
  3. Copy A Range of Cells Or Sheet and Paste to A New Workbook
    By Nathan123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2007, 09:24 PM
  4. [SOLVED] Personal macro workbook and personal.xls
    By John Kilkenny in forum Excel General
    Replies: 1
    Last Post: 06-14-2005, 05:05 PM
  5. Replies: 2
    Last Post: 03-21-2005, 08:06 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