+ Reply to Thread
Results 1 to 4 of 4

Apply number formatting to range of data in column across all worksheets

  1. #1
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Apply number formatting to range of data in column across all worksheets

    Hi,

    I have a workbook with several worksheets. I am looking for help with a macro that would loop through all sheets in my workbook and apply number formatting to the entire range of numbers in a specific column.

    For example, I want to apply _(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_) formatting to column O on all of my worksheets. BUT, the range of data in that column to which I want to apply that formatting has a header, and more data below it that I do not want formatted. In other words, if I were doing it manually, I could select cell O2 then Ctrl + Shift + down arrow, and then apply my formatting.

    All help is greatly appreciated!

    Carlos

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Apply number formatting to range of data in column across all worksheets

    select cell O2 then Ctrl + Shift + down arrow, and then apply my formatting.
    Is it for all sheets the range staring at O2 ?
    Note: Header does not mind for the number format
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Apply number formatting to range of data in column across all worksheets

    Hi PCI. Thanks for the quick reply.

    Yes, all sheets the range starting at O2.

    I need to apply formatting to other columns as well, but I figured that with help doing it for column O, I would be able to do it for the rest of the columns that need formatting (not all same formatting).

    Thank you!

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Apply number formatting to range of data in column across all worksheets

    See next code
    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)

Similar Threads

  1. Replies: 0
    Last Post: 08-02-2017, 03:42 PM
  2. [SOLVED] Data into multiple worksheets based on column in Excel and apply auto filter and freeze
    By skumarlingam in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-28-2016, 04:50 PM
  3. [SOLVED] How To Apply Conditional Formatting to Multiple Worksheets?
    By taylorsm in forum Excel General
    Replies: 1
    Last Post: 06-08-2016, 12:27 PM
  4. [SOLVED] Loop through worksheets and apply conditional formatting
    By beenbee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2016, 07:20 AM
  5. Conditional formatting if in range of values: apply to column
    By marcopietro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2014, 02:34 PM
  6. Replies: 2
    Last Post: 09-17-2014, 09:35 AM
  7. Apply same formatting to all worksheets in a workbook
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2010, 12:23 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