+ Reply to Thread
Results 1 to 5 of 5

Copy Excel workbook without formulas??

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Copy Excel workbook without formulas??

    Hi guys!

    I am trying to make my very first Excel macro and I have hit a snag. My background is Java, and this my first venture into anything VB or VB like...

    I have a workbook with multiple sheets. I need to copy it all to a new workbook with exception of the excel formulas - just the values, number formatting, background colours etc.


    The code I have so far does that, but only for the active sheet - can you help me out with looping through the rest?


    So far I have the following code working:

    Please Login or Register  to view this content.
    Now, can anyone encapsulate my code in a loop that will run through all sheets in the workbook? thanks!

    Last edited by Webmonkey; 01-12-2011 at 10:48 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copy Excel workbook without formulas??

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copy Excel workbook without formulas??

    I tried a lot of code now, but always end up with a new wookbook, where all cells which should have a value in them, instead display "#VALUE!"

    like this code:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy Excel workbook without formulas??

    One workbook containing all the original workbook's sheets but no formulas?
    Please Login or Register  to view this content.
    Last edited by royUK; 01-12-2011 at 10:29 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    01-12-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copy Excel workbook without formulas??

    Thanks for your input guys! The issue have been solved!

+ 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