Results 1 to 3 of 3

Thread: [RESOLVED] [Excel] Change Event Target.Value

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Huntsville, AL
    Posts
    62

    Resolved [RESOLVED] [Excel] Change Event Target.Value

    Hello,

    I'm trying to determine if the changed cell on a worksheet is blank or not. I use the following code in the worksheet's Change event,
    Code:
    If Target.Value <> "" Then
        ...
    End If
    This works great, unless I use the delete key to clear a cell. When I do this, I get a Run-time error '13': Type mismatch. When I step through the code I added the following watch:
    Code:
    Target.Value
    The type is shown as the following:
    Code:
    Variant/Variant(1 to 2, 1 to 1)
    Does this mean the value is a two dimension variant array? Why? More importantly, how do I check for this, so my code doesn't break?
    Last edited by arcanine; Jun 2nd, 2011 at 04:37 PM. Reason: Change wording to remove the ads that were injected into my post.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width