Hi ,
I got a compile error. End If without Block if - I'm flummoxed , any advice?
![]()
Please Login or Register to view this content.
Hi ,
I got a compile error. End If without Block if - I'm flummoxed , any advice?
![]()
Please Login or Register to view this content.
If you place the IF and the THEN on the same line you don't need the END IF.
You need to change:
to either:![]()
Please Login or Register to view this content.
Or![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source
If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE
Walking the tightrope between genius and eejit...
got this now?????????????
Last edited by bralew; 10-25-2016 at 09:21 AM.
It doesn't like the end for some reason
You appear to have commented out:
![]()
Please Login or Register to view this content.
Hi bralew,
You have to put the text after the Then on the next line.
or get rid of the End If (which I highly discourage)![]()
Please Login or Register to view this content.
Even though it takes additional lines of code, I always use the first construction, because I find it a lot easier to debug, because I know I must have an 'End If' for each 'If' statement.![]()
Please Login or Register to view this content.
I hope this helps.
Lewis
Ive left out
Private Sub ComboBox3_Change()
because that sat the top, it the end statement that I'm having trouble with. I'll try some of the above remedies and get back to you. Gimme a sec, cheers all.
LJMetzer I've tried your second suggestion and still get this:
All you have to do to the code you posted originally is remove the END IF (or use the alternative formulation now provided twice).
I've tried them all, still scratching my head???
It's ok, I've gone back a version, thank you all
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks