About 420,000 results
Open links in new tab
  1. VBA Run-time error '-2147467259 (80004005) - Stack Overflow

    Jul 1, 2015 · I am trying to connect to mysql using Excel VBA, I am using Excel 2013. I am new to VB, so i followed this example: Inserting Data Into MySQL From Excel Using VBA Here is my …

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

    Jul 14, 2017 · Microsoft Excel's VBA: If Statements running incorrectly, Always Run. 0.

  3. vba - automation error -2146232576 (80131700) on creating an …

    Nov 16, 2016 · I am answering a question that is two and a half years old, but took me way too long to find an answer for this elsewhere, and this still appears near the top of google's results …

  4. What operator is <> in VBA - Stack Overflow

    Apr 2, 2018 · In VBA this is <> (Not equal to) operator. The result becomes true if expression1 <> expression2.

  5. Excel VBA Loop on columns - Stack Overflow

    Dec 21, 2012 · If you want to stick with the same sort of loop then this will work: Option Explicit Sub selectColumns() Dim topSelection As Integer Dim endSelection As Integer topSelection = …

  6. Combine multiple Excel workbooks into a single workbook

    Oct 20, 2014 · The following accomplishes the task. Option Explicit Private Sub CommandButton1_Click() Dim directory As String, fileName As String, sheet As Worksheet, …

  7. if condition with "and" combine "multiple or" in Vba Excel

    Aug 16, 2017 · You can't use If statement in condition in another If statement. One solution is to use nested If's, for more info look here.

  8. VBA + Excel + Try Catch - Stack Overflow

    Dec 20, 2019 · VBA will allow you to adhoc use variables, but its difficult to maintain if you do that. Add to the beginning of your code, right after version dim URL as string dim objHTTP as object …

  9. How to do a "Save As" in vba code, saving my current Excel …

    I have an Excel Workbook that on form button click I want to save a copy of the workbook with the filename being the current date. I keep trying the the following ActiveWorkbook.SaveAs …

  10. vba - Continue For loop - Stack Overflow

    You're thinking of a continue statement like Java's or Python's, but VBA has no such native statement, and you can't use VBA's Next like that. You could achieve something like what …