+ Reply to Thread
Results 1 to 3 of 3

Macro to edit formatting

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    California
    MS-Off Ver
    365 E3
    Posts
    10

    Macro to edit formatting

    Hello!

    I have a system that provides a report in a format that is difficult to use. I need to clean it up but I use this report very often, with different data, so would like to build a macro to quickly reformat. I'm not sure how...
    To note, the report does not actually export into Excel/CSV, I manually have to copy the data from the screen and paste it into Excel, so I could have a saved Excel template with the macro for the reformatting.

    Attached is a sample report, the first tab is the raw report, the second tab is how I want it reformatted. The basic steps are:
    1. Keep Row 1 as the Column Headers, but delete all duplicate rows with these headers (as shown in rows 5, 10, 13, 17, 20, 23, 33 in the sample).
    2. Delete blank rows between the rows with data (as shown in rows 4, 9, 12, 16, 19, 22 and 32)
    3. Copy the data in columns A and B to the subsequent blank rows (ie cell A3 should show "1", and cell B3 should show "Nuits St Georges Faiveley 2002".

    The data in these reports will vary, so information will appear in different rows.

    Thanks for the help!
    Attached Files Attached Files
    Last edited by kikijean; 06-23-2021 at 05:17 PM.

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,477

    Re: Macro to edit formatting

    See if this macro does what you want...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-04-2021
    Location
    California
    MS-Off Ver
    365 E3
    Posts
    10

    Re: Macro to edit formatting

    This is perfect! Thank you!

+ 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. Edit edit links macro to automate sheet selection
    By sds1126 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2015, 12:27 PM
  2. Marlett Checkboxes to edit formatting
    By baboness in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 05:45 PM
  3. [SOLVED] Edit call but no formatting
    By bimo in forum Excel General
    Replies: 2
    Last Post: 04-29-2014, 10:54 AM
  4. Edit the formula for Conditional Formatting
    By niks in forum Excel General
    Replies: 2
    Last Post: 01-12-2011, 08:02 AM
  5. Lock Formatting But Allow User To Edit Value
    By googlebot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2008, 04:58 PM
  6. Edit spreadsheet on one PC, formatting messed up on other
    By billmatt2008 in forum Excel General
    Replies: 3
    Last Post: 07-19-2008, 08:02 PM
  7. [SOLVED] How to edit row height with conditional formatting?
    By CDAK in forum Excel General
    Replies: 4
    Last Post: 06-12-2005, 02:05 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