+ Reply to Thread
Results 1 to 4 of 4

Macro to Group, Label and draw borders

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Macro to Group, Label and draw borders

    Hello all,

    On the attached example, I would like a macro that makes sheet1 look like sheet2.

    The rows need to be grouped by the load data (Column A). I would then like a column inserted to the left of this that is merged to create a vertical label for all rows with the same load data (as shown in sheet2).

    Once this task has been performed, I would like borders to be drawn around all cells and then a thick border drawn around the grouped, load data.

    The number of different loads and rows of data will vary each time I run the macro.

    I have no experience on creating macros so any help is greatly appreciated.
    thanks,
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-02-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    104

    Re: Macro to Group, Label and draw borders

    From where the load is coming on sheet2 from sheet1 ?? Where are these numbers in sheet1

    Load
    456
    456
    456
    789
    789
    789
    789
    789
    987
    654

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Macro to Group, Label and draw borders

    Sorry - attached the wrong file.

    The correct file is now attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-02-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    104

    Re: Macro to Group, Label and draw borders

    Check this attachment and code
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Macro that would draw a line using cell borders after user input
    By Tom T Hall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2014, 11:25 AM
  2. [SOLVED] Conditional Format to draw top and bottom borders at first and last of a group of text
    By jojo101 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-21-2013, 02:17 AM
  3. [SOLVED] Macro that can draw borders in cells with data across multiple sheets in a workbook
    By kodos10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 08:01 AM
  4. Draw automatic borders using VBA
    By joh46k in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-05-2013, 03:22 AM
  5. UDF to set borders or draw line in current cell
    By DJWim in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-26-2012, 07:42 PM
  6. Unexplainable (to now) error when trying to draw borders
    By NiceLittleRabbit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2010, 10:24 AM
  7. Using a macro to draw borders
    By Jen5309 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2008, 02:58 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