About 838,000 results
Open links in new tab
  1. What is the equivalent of "!=" in Excel VBA? - Stack Overflow

    The problem is that != does not work as a function in excel vba. I want to be able to use If strTest != "" Then instead of If strTest = "" Then Is there another approach to do this besides !=? ...

  2. VBA: Selecting range by variables - Stack Overflow

    I want to select the formatted range of an Excel sheet. To define the last and first row I use the following functions: lastColumn = ActiveSheet.UsedRange.Column - 1 + …

  3. Newest 'vba' Questions - Stack Overflow

    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. excel - Declare and use range in vba - Stack Overflow

    Dec 10, 2014 · I am quite new to VBA, Today developing a macro I noticed something funny. Using Range like this is working : Dim rg As Range Set rg = ActiveSheet.Range("A1:B2") …

  5. vba - Removing All Spaces in String - Stack Overflow

    Feb 18, 2017 · I created a macro for removing all whitespace in a string, specifically an email address. However it only removes about 95% of the whitespace, and leaves a few. My code: …

  6. vba - Split string into array of characters? - Stack Overflow

    Nov 2, 2012 · How is it possible to split a VBA string into an array of characters? I tried Split(my_string, "") but this didn't work.

  7. vba - Getting the currently logged-in windows user - Stack Overflow

    there are lots of way to get the current logged user name in WMI. my way is to get it through the username from process of 'explorer.exe' because when user login into window, the access of …

  8. excel - Get length of array? - Stack Overflow

    Jun 1, 2015 · Length of an array: UBound(columns)-LBound(columns)+1 UBound alone is not the best method for getting the length of every array as arrays in VBA can start at different …

  9. vba - fast way to copy formatting in excel - Stack Overflow

    Dec 23, 2011 · Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,

  10. vba - How to wait until ActiveWorkbook.RefreshAll finishes before ...

    Here is a trick that has worked for me when some lines of VBA code have trouble executing because preceding lines haven't completed doing their thing. Put the preceding lines in a Sub. …