About 18,400,000 results
Open links in new tab
  1. Newest 'vba' Questions - Stack Overflow

    Dec 11, 2025 · 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 …

  2. Properly Handling Errors in VBA (Excel) - Stack Overflow

    Block 2 looks like an imitation of a Try/Catch block. It should be okay, but it's not The VBA Way. Block 3 is a variation on Block 2. Block 4 is a bare-bones version of The VBA Way. I would strongly advise …

  3. Parsing JSON in Excel VBA - Stack Overflow

    Jul 8, 2011 · 87 I have the same issue as in Excel VBA: Parsed JSON Object Loop but cannot find any solution. My JSON has nested objects so suggested solution like VBJSON and vba-json do not work …

  4. VBA to copy a file from one directory to another - Stack Overflow

    I have an access file that I regularly need to copy to another directory, replacing the last version. I would like to use an Excel macro to achieve this, and would also like to rename the file in the

  5. 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. …

  6. excel - Creating an Array from a Range in VBA - Stack Overflow

    Jun 8, 2016 · slicedArr = Application.WorksheetFunction.index(arr, 1, 0) 'If you set row_num or column_num to 0 (zero), Index returns the array of values for the entire column or row, respectively._ …

  7. 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 + ActiveSheet.UsedRange.Columns.

  8. vba - Excel doesn't update value unless I hit Enter - Stack Overflow

    Jul 8, 2015 · I have a very annoying problem in one of my worksheets in a workbook. I am using EXCEL 2007. Any cell's value will not be updated unless I hit ENTER. Either if the formula in the cell includes …

  9. Excel VBA - Pivot table filter multiple criteria - Stack Overflow

    Excel VBA - Pivot table filter multiple criteria Asked 8 years, 9 months ago Modified 2 years, 10 months ago Viewed 35k times

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

    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 ("\\\\filePath\\