+ Reply to Thread
Results 1 to 4 of 4

VBA Code tweak to include formats

  1. #1
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    VBA Code tweak to include formats

    Update - - My subject line says FORMATS - - but I did mean to say FORMULAS. Sorry for the confusion.

    Hi all - - I have the code below that takes all excel workbooks found in one folder and combines them into one master file. It works well, however I'm trying to make some changes to it. The source excel files contain formulas throughout. The code does not create the master file with the formulas, but only the values. Can someone take a look at this and see how I might tweak it to include the formulas in the master file?

    Please Login or Register  to view this content.
    Last edited by Ironman; 10-29-2012 at 11:25 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: VBA Code tweak to include formats

    If you include formulas you would need to have all the source workbooks open for them all to work.

    Anyway, this should do it.
    Please Login or Register  to view this content.
    PS It is formulas and not formats?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: VBA Code tweak to include formats

    Your header says formats but your description says formulae.

    Norie answered the part of formulae, if you need formats, just use this
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Code tweak to include formats

    Like so:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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