About 20,100,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. How to show current user name in a cell? - Stack Overflow

    In most of the online resource I can find usually show me how to retrieve this information in VBA. Is there any direct way to get this information in a cell? For example as simple as =ENVIRON('Use...

  3. excel - Check if the file exists using VBA - Stack Overflow

    Jul 20, 2012 · Use the Office FileDialog object to have the user pick a file from the filesystem. Add a reference in your VB project or in the VBA editor to Microsoft Office Library and look in the help. This …

  4. 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.

  5. filter out multiple criteria using excel vba - Stack Overflow

    Feb 18, 2015 · 1 Alternative using VBA's Filter function As an innovative alternative to @schlebe 's recent answer, I tried to use the Filter function integrated in VBA, which allows to filter out a given …

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

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

  8. excel - How to use VBA to duplicate a sheet and then rename it (all in ...

    Jul 9, 2021 · How to use VBA to duplicate a sheet and then rename it (all in one sub)? Asked 4 years, 5 months ago Modified 1 year, 2 months ago Viewed 8k times

  9. 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\\

  10. vba - Get User Selected Range - Stack Overflow

    Nov 2, 2010 · How can I get a range of cells selected via user mouse input for further processing using VBA?