Results 1 to 5 of 5

User selected merged cell range to be cleared

Threaded View

  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.

    Private Sub CmdClear_Click()
    On Error GoTo error_handler
    Set srng = Application.InputBox(prompt:= _
      "Select Appointment to be cleared", Type:=8)
    With srng
    Dim I As Integer
        With ActiveCell.MergeArea
    End With
    error_handler:
    Exit Sub
        End With
        ActiveCell.Select
        End Sub
    Last edited by vdongen; 10-08-2010 at 11:30 PM.

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