+ Reply to Thread
Results 1 to 3 of 3

Compiler Errro

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Compiler Errro

    I am getting compiler error with the below macro

    Block if without End if
    Please Login or Register  to view this content.
    Help!!

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Compiler Errro

    @kishoremcp

    Please check the code below. Place your "End if" statement on the desired condition.

    Sub Pick_MacSSRR()

    If Range("C2").Value = "Phone" Then
    Call SSP
    Call RRP
    End If
    ThisWorkbook.Worksheets("WCSAT").Activate
    If Range("C2").Value = "Email" Then
    Call SSE
    Call RRE
    End If
    If Range("C2").Value = "Chat" Then
    Call SSE
    ThisWorkbook.Worksheets("WCSAT").Activate
    End If
    End Sub

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Compiler Errro

    you have to close each IF with End If like this
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

+ 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