+ Reply to Thread
Results 1 to 12 of 12

Create new worksheet, unmerge and enter value, remove rows meeting criteria

  1. #1
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Hello All,
    I am a newbee to the forum and would like some help creating a macro. I have gathered bits and pieces but what I have at the moment makes excel have a spaz attack and crash:P

    I would like to create a macro that copies an entire sheet (SCOR) and pastes the data in a new worksheet, this data is currently in a format that is not very user friendly so I would like to clean it up by 1) unmerging the merged cell and put value in all cells 2) Remove all rows that contain '#Break' in column C.

    Thankyou for your help

    this is what I currently have but it may not be useful:

    Please Login or Register  to view this content.
    Last edited by wacky_diva; 10-11-2012 at 07:21 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    attach a sample file for testing
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Talking Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Hi thanks for your reply, I have attached a sample as requested.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Thanks again Patel45, I look forward to your response

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    I'm sorry but I'm don't know very well groups, your file is not easy to manage for me.
    check this line Dim rng As Range: Set rng = ActiveSheet.UsedRange
    don't use UsedRange, but define a range with a known number of columns, if you test step by step with F8 you can see a scanning through all sheet columns
    Last edited by patel45; 10-12-2012 at 04:22 AM.

  6. #6
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Hello, thanks for your reply, but I'm not really sure what you are telling me, the groups will not have any impact in anyway, you can ignore them.
    Essentially I just need a VB code that will:
    1) Unmerge and enter the values into each cell originally merged for the entire sheet.
    2) Remove all rows that contain "#Break" in column C.

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    You have two options, 1) wait for another answer 2) attach a workbook without groups or blocks to help me

  8. #8
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Good morning,
    I have removed the groups for you, but I am not sure what you mean by blocks? I hope this one is ok.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    I can see columns from A to G, rows from 9 to 37, I'm sure there are more, why do you make it hard work?

  10. #10
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    I can not supply the original file; I created one that should meet your needs, there is no need to be rude. I have been as helpful as possible.

  11. #11
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    you can change the contents, I need to know the structure of the workbook, it's your problem, I'm not curious

  12. #12
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Create new worksheet, unmerge and enter value, remove rows meeting criteria

    Thankyou for you help Patel45, I have resolved the issue.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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