+ Reply to Thread
Results 1 to 5 of 5

User selected merged cell range to be cleared

  1. #1
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    User selected merged cell range to be cleared

    User get question to select area to be cleared.
    Only need to be a present merged cell range that is entitled for clearance.
    I face problem to implement it. Anybody able to help me.

    Macro need to start with inputpox.

    Please Login or Register  to view this content.
    Last edited by vdongen; 10-08-2010 at 11:30 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: User selected merged cell range to be cleared

    When you say "clear" do you just want the contents cleared?

    If so...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: User selected merged cell range to be cleared

    Hi Andrew,

    Colour fill and unmerge actions needs to be performed as well.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: User selected merged cell range to be cleared

    This problem is starting to sound familiar.

    Changing srng.MergeArea.ClearContents to srng.MergeArea.Clear will clear the contents and unmerge the range, so all that's left is the colour fill.

  5. #5
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: User selected merged cell range to be cleared

    Thanks! Possible to have it filled with a colour after unmerging?
    I want to use colour RGB 227-227-227, possible to use specific colours or only the standards like black, red, gold, green etc. I have read a website with colourcodes, I will look at it, but need any helpf to implement the colour fill action.

    .Interior.ColorIndex = 5 did not work for me.

+ 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