Results 1 to 5 of 5

VBA Error: End IF without Block IF

Threaded View

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    98

    VBA Error: End IF without Block IF

    I have made this simple code which replaces an empty cell with "Empty" on a button.

    Sub Button1_Click()
    If Range("A1") = "" Then Range("A1") = "Empty"
    End If
    End Sub
    But when I run it I get the error message "End IF without Block IF"

    Spreadsheet attached.
    Can anyone understand why - Can anyone help?
    Attached Files Attached Files
    Last edited by Chris424; 10-29-2008 at 07:32 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