+ Reply to Thread
Results 1 to 7 of 7

Formatting multiple copied sheets in macro

  1. #1
    Registered User
    Join Date
    05-21-2010
    Location
    Robbins
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formatting multiple copied sheets in macro

    I have a file with a macro that creates a new sheet named New Record. We use this new sheet to enter data and then rename the sheet 2010Q1, 2010Q2 etc to represent the year and current quarter. I also have a macro that is capable of coping anyone of the sheets and/or multiple sheets (depending on which tab I want to copy at that time) and exports them to new workbook. The macro reformats the first sheet but not multiple sheets. How can I get it to format the additional sheets selected after the first sheet? Below is what I have so far:

    Thanks,
    Last edited by swilliams; 05-28-2010 at 01:34 PM.

  2. #2
    Registered User
    Join Date
    05-21-2010
    Location
    Robbins
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formatting multiple copied sheets in macro

    To help clarify the questions, I want to export multiple sheets and format them upon export. The code above will allow me to export multiple sheets, but only reformats the first. I need to do the exact same format for all sheets.

    Thanks,

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

    Re: Formatting multiple copied sheets in macro

    Please edit your original post above and put code tags on your code, as shown in my signature. I think I can tweak that macro for you.
    Last edited by JBeaucaire; 05-28-2010 at 01:30 PM.
    _________________
    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!)

  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: Formatting multiple copied sheets in macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    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
    05-21-2010
    Location
    Robbins
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formatting multiple copied sheets in macro

    Please Login or Register  to view this content.

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

    Re: Formatting multiple copied sheets in macro

    As long as you delete that code from post #1 (which is still incorrectly posted), we're good.

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

    Re: Formatting multiple copied sheets in macro

    Try this:
    Please Login or Register  to view this content.

+ 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