+ Reply to Thread
Results 1 to 2 of 2

Thread: Clearing cells from userform

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Washington, US
    MS-Off Ver
    Excel 2003
    Posts
    72

    Clearing cells from userform

    I am getting a Run-time error '1004' (Clear method or Range class failed).

    When i use the following code before i load or show the userform, it works fine but when i am trying to use the code during the Combobox change event I get the above error.

    I am trying to clear one of the sheets

    Code:

    HTML Code: 
     'Clear Filter
        With shFilter
            .Cells.Clear
            .AutoFilterMode = False
        End With

    Thanks for any help,

    JJ

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Clearing cells from userform

    Maybe we could see that in the context of a workbook with a form in it?

    Regards

+ 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.2.0