Results 1 to 13 of 13

Formatting Macro

Threaded View

  1. #1
    Registered User
    Join Date
    07-26-2006
    MS-Off Ver
    Office 365
    Posts
    97

    Formatting Macro

    Hello,

    I posted this in Commercial Services but did not get a response.

    I am somewhat new to macros and have one I thought would be simple. I tried recording the macro but quickly found myself out of my depth.

    I have multiple sheets with data in table form. Each sheet has the same exact headers (headers are in the range A10:AE10) but the number of rows vary.

    The formats for each column vary from General, Accounting, Number, Date etc, and may change in the future.

    I am in need of a macro that can go into specific sheets and reformat the range of data in the columns based on the format of a specific range of cells in another sheet.

    I have a master range, on a sheet I named “Master”. In cells A1:AE1, Here is where I have set my formats. (I figured it would be easier to change the formats here if things change)

    The macro will apply only to the tabs that start with a "T" or "J" (The J sheets are the "Job ####" sheets of the attached)

    It will then go to first sheet, find the range of data below the header (starting in A11 and going to AE?? since number of rows will vary), and format the data based on the formatting of the range from the Master tab (cell A1 format from the Master will equal the format for column A in the sheet)
    It would then apply a thin, solid border around the whole range and “dotted” borders within the range. (I am not sure how to describe the varying levels of borders, but it is the one directly below “None” on border selection).

    It would also have the ability to hide columns, say H, L, & P columns for this example.

    Once complete, it would move to the next sheet until all sheets that start with a J or T are formatted.

    There is another macro in the workbook called JobCodeOutput that the macro may be able to fit into. I kept my request as a separate macro not to confuse the issue.

    Any suggestions?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM
  2. Pivot Table graph looses formatting after running formatting macro
    By arthurbr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2011, 04:16 AM
  3. Conditional formatting macro (highlight macro)
    By c991257 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2007, 02:46 PM
  4. Macro Formatting? Please Help
    By Plasmaticfire in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2006, 03:05 PM
  5. RE: Macro Formatting? Please Help
    By Gary Brown in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 01:14 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