+ Reply to Thread
Results 1 to 3 of 3

Compile Error (Else without If)

  1. #1
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Compile Error (Else without If)

    I cannot find the cause of error in my code that say "Else without If" but I do have If in the codes already

    Please Login or Register  to view this content.
    The error highlighted in "Range" in

    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by unley; 05-11-2011 at 08:59 PM.
    I'm using MS Office 2013

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Compile Error (Else without If)

    Hi unley,
    I think you need to end the WITH section before you can deal with the IF part.

    Try an End With just before your error line. You may need another one down farther too.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Compile Error (Else without If)

    Yes you're right MarvinP, I forgot the End With (silly me)

    Thanks mate, appreciate your reply

+ 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.6.0 RC 1