About 54 results
Open links in new tab
  1. How to comment and uncomment blocks of code in the Office VBA …

    Apr 2, 2018 · In the VBA editor, go to View, Toolbars, Customise... or right click on the tool bar and select Customise... Under the Commands tab, select the Edit menu on the left. Then approximately …

  2. Does the += operator just not exist in VBA? - Stack Overflow

    VBA is quite different from VB.net - VBA isn't so strict with type but then again VB.net isn't as strict as c#. I like them all - VBA seems limited but if you are playing with Excel then VBA is part of the …

  3. Newest 'vba' Questions - Stack Overflow

    5 days ago · Visual Basic for Applications (VBA) is an event-driven programming language which was first introduced by Microsoft in 1993 to give Excel 5.0 a more robust object-oriented language for …

  4. How should I make my VBA code compatible with 64-bit Windows?

    I have a VBA application developed in Excel 2007, and it contains the following code to allow access to the ShellExecute function from Shell32.dll: Private Declare Function ShellExecute Lib "shell...

  5. How do I express "if value is not empty" in the VBA language?

    Dec 31, 2009 · Worth noting, that this is something like the null value in other mainstream languages. Emtpy value IS NOT empty string (eg:"")...

  6. Declaring variable workbook / Worksheet vba - Stack Overflow

    Sep 25, 2014 · VBA uses this code name to automatically declare a global-scope Worksheet object variable that your code gets to use anywhere to refer to that sheet, for free. In other words, if the …

  7. 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, which is an …

  8. Read/Parse text file line by line in VBA - Stack Overflow

    I'm trying to parse a text document using VBA and return the path given in the text file. For example, the text file would look like: *Blah blah instructions *Blah blah instructions on line 2 G:\\\\...

  9. Find last used cell in Excel VBA - Stack Overflow

    See my solution based on UsedRange and VBA arrays to find the last cell with data in the given column -- it handles hidden rows, filters, blanks, does not modify the Find defaults and is quite performant. …

  10. vba - Lock down Microsoft Excel macro - Stack Overflow

    Sep 9, 2016 · Protect/Lock Excel VBA Code: When we write VBA code it is often desired to have the VBA Macro code not visible to end-users. This is to protect your intellectual property and/or stop …