Results 1 to 12 of 12

type mismatch on cell contents. Cell.clearcontents

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    type mismatch on cell contents. Cell.clearcontents

    Hi there,

    I have a simple formula procedure which is linked to a button. When the button is clicked, nothing happens even though ranges have values.

    Dim cell As Object
    For Each cell In Worksheets("test").Range("F2:J40")
    If cell.Value <> 0 Then cell.ClearContents 
    Next cell
    End Sub
    Columns have values, but this button doesn't really clear them.

    Is anyone able to assist?

    Thanks
    Last edited by Lifeseeker; 01-07-2012 at 02:33 AM.

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