+ Reply to Thread
Results 1 to 2 of 2

Delete duplicate headings

Hybrid View

  1. #1
    gmayeaux@lctcs.net
    Guest

    Delete duplicate headings

    I am wondering if it is possible to write a macro to delete duplicate
    heading in a worksheet. The heading is hard coded in a program that I
    am converting to excel so the heading is repeated in the worksheet and
    I am currently manually deleting the headings so that I can sort and
    manipulate the data and I am just repeating the rows at the top when it
    is printed for the heading. Please help!

    Thanks!


  2. #2
    STEVE BELL
    Guest

    Re: Delete duplicate headings

    There are dozens of ways to delete rows.

    The trick is finding a way to identify each row that you want to delete.

    One of the ways is to used code to replace one of the headings with nothing.
    But you need to exclude the first row.
    Than have code that will select that column, than goto > special > blanks.
    Than delete entire rows.

    You can do this manually and have the recorder turned on. This will give
    you the code.
    But this code will show the exact cell designations. These will most likely
    need to be replaced with
    variables to work on a changing set of data.

    Reply back if this doesn't help, or if you need further help.

    Another way is to identify the header, than loop from the last row to row 2.
    If the cell is equal to the header, than Rows(x).delete

    --
    steveB

    Remove "AYN" from email to respond
    <gmayeaux@lctcs.net> wrote in message
    news:1123766941.640674.202810@g47g2000cwa.googlegroups.com...
    >I am wondering if it is possible to write a macro to delete duplicate
    > heading in a worksheet. The heading is hard coded in a program that I
    > am converting to excel so the heading is repeated in the worksheet and
    > I am currently manually deleting the headings so that I can sort and
    > manipulate the data and I am just repeating the rows at the top when it
    > is printed for the heading. Please help!
    >
    > Thanks!
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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