+ Reply to Thread
Results 1 to 2 of 2

ElseIf Without If

  1. #1
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    ElseIf Without If

    PHP Code: 
            If Toggler 0 Then
            
                            With Range
    (Cells(RangeRow1), Cells(1000011))
                            
    Set rFind = .Find(What:=ExpTaskLookAt:=xlWholeMatchCase:=FalseSearchFormat:=False)

                            
    P6Task Workbooks(SrcFile).Worksheets(DesSheet).Cells(rFind.Row1)
                            
    P6Disc Workbooks(SrcFile).Worksheets(DesSheet).Cells(rFind.Row3)
         
                
            ElseIf 
    Toggler <> 0 Then
            
                            P6Task 
    Workbooks(SrcFile).Worksheets(DesSheet).Cells(DesRow1)
                            
    P6Disc Workbooks(SrcFile).Worksheets(DesSheet).Cells(DesRow3)
                            


            
    End If
            
    End With 
    Not seeing how there is a problem with this IF, ELSEIF, ENDIF syntax.

    Am i not seeing the wood for the trees?

    Cheers,

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: ElseIf Without If

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If / ElseIf within For Each?
    By pwells in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2014, 10:35 AM
  2. Code stepping in to elseif statement when elseif is definitely not true
    By DFrank231 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2013, 05:31 PM
  3. If Elseif elseif problem
    By tjbillund in forum Excel General
    Replies: 3
    Last Post: 08-10-2011, 07:02 AM
  4. [SOLVED] if elseif
    By flow23 in forum Excel General
    Replies: 0
    Last Post: 11-14-2005, 10:15 AM
  5. Re: IF..Then..ELSE.. ELSEIF
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  6. [SOLVED] IF..Then..ELSE.. ELSEIF
    By ole_ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 11:06 AM
  7. [SOLVED] If, ElseIf
    By mast in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2005, 09:06 AM

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