+ Reply to Thread
Results 1 to 5 of 5

Format cells in multiple sheets automatically

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Macedonia
    MS-Off Ver
    2010
    Posts
    69

    Format cells in multiple sheets automatically

    Hello!

    I have a spreadsheet that has multiple sheets. It is generated by a software. The names and the number of the sheets varies each time.

    I am kindly asking for help with a macro that will do the following in each sheet of the file:

    1. Cells D3-F3: add "Thick Bottom Border";
    2. Cells E6-H6: merge and center and add "bottom border" (not thick but normal).
    3. Cell D9: format as date (dd/mm/yyyy)

    Attached please find the example file showing how it is and how I need it to be. The cells that require adjustments are highlighted for easy spotting.

    Your efforts and time dedicated to resolving this issue are mostly appreciated.
    Attached Files Attached Files
    Last edited by gokica; 03-20-2015 at 08:03 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Format cells in multiple sheets automatically

    Maybe:

    Please Login or Register  to view this content.

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

    Re: Format cells in multiple sheets automatically

    Hi gokica,

    If you turn on the macro recorder and simply do what you ask you will get the following in the attached. Go to any sheet and run the macro. See if it works for you.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    10-21-2014
    Location
    Macedonia
    MS-Off Ver
    2010
    Posts
    69

    Re: Format cells in multiple sheets automatically

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.


    Wonderful! Thank you so much. It works.

    I just need to add the Centering of the merged range E6:H6 and also I will add Thick bottom border at cell D9. But I will try to do this my self.

    Thank you so much.

    Quote Originally Posted by MarvinP View Post
    Hi gokica,

    If you turn on the macro recorder and simply do what you ask you will get the following in the attached. Go to any sheet and run the macro. See if it works for you.

    Thank you. The problem is that there are over 200 sheets in the file and if I run the macro on each sheet individually it will take a lot of time. I was aware of the macro recorder but I could not figure out how the same routine can be applied automatically to as many worksheets as there are in the file.
    Last edited by gokica; 03-20-2015 at 08:49 AM.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Format cells in multiple sheets automatically

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. Replies: 2
    Last Post: 12-02-2013, 10:05 AM
  2. Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA
    By ashokpatidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2013, 10:04 PM
  3. Automatically link multiple work sheets when creating multiple copies
    By Woody3ER in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 09:52 AM
  4. Replies: 13
    Last Post: 11-26-2012, 12:57 PM
  5. Automatically Consolidating Multiple Sheets
    By nhsblackpool1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-27-2008, 11:15 AM

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