About 9,920,000 results
Open links in new tab
  1. vba - How to break a long string into multiple lines - Stack Overflow

    I'm using this insert statement in my code in VBA Excel, but I'm not able to break it into more than one line: SqlQueryString = "Insert into Employee values (" & txtEmployeeNo.Value &a...

  2. How to continue the code on the next line in VBA - Stack Overflow

    In VBA (and VB.NET) the line terminator (carriage return) is used to signal the end of a statement. To break long statements into several lines, you need to Use the line-continuation character, …

  3. excel - How to use OR in if statement in VBA - Stack Overflow

    Jul 14, 2017 · How to use OR in if statement in VBA [duplicate] Asked 8 years, 5 months ago Modified 4 years, 4 months ago Viewed 47k times

  4. vba - How to resolve a Compile error: Expected: end of statement …

    Apr 27, 2017 · How to resolve a Compile error: Expected: end of statement caused by " (" Asked 8 years, 8 months ago Modified 2 years, 10 months ago Viewed 81k times

  5. "And" and "Or" troubles within an IF statement - Stack Overflow

    I'm trying to use "And" & "Or" within an If statement. I probably have my syntax wrong. the result comes back false when the data should make it true. Here is the code: ElseIf (origNum …

  6. vba - If...Then...Else with multiple statements after Then - Stack …

    Mar 17, 2013 · vba if-statement conditional-statements edited Mar 23, 2013 at 19:22 Peter L. 7,354 5 37 55

  7. break a long sql vba statement into multiple lines

    Both the & _ and _ w/ & on the next line works. I like the _ + new line + & method because I sometimes build very long lines of code (still!) and the & at the left margin reminds me it's a …

  8. How to use a SQL SELECT statement with Access VBA

    Nov 19, 2014 · I have a combobox whose value I want to use with a SQL WHERE clause. How do you run a SELECT statement inside VBA based on the combobox value?

  9. How to return a result from a VBA function - Stack Overflow

    When called within VBA the function will return a range object, but when called from a worksheet it will return just the value, so set test = Range("A1") is exactly equivalent to test = …

  10. excel - Best way to compare strings in VBA? - Stack Overflow

    From my experience so far though, comparing strings in VBA seems to be a rather fickle thing, because I feel like I get inconsistent results. QUESTION: What is the best procedure for …