About 668,000 results
Open links in new tab
  1. 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: …

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

  3. excel - Add sensitivity label - Stack Overflow

    Dec 7, 2022 · Search from google, but still have no idea how to select sensitivity label automatically by VBA How to control it by VBA?

  4. VBA - how to conditionally skip a for loop iteration

    Dec 30, 2011 · VBA does not have a Continue or any other equivalent keyword to immediately jump to the next loop iteration. I would suggest a judicious use of Goto as a workaround, …

  5. vba - Continue For loop - Stack Overflow

    Heck, I wrote so much VBA code at one time (before CS and IT were a thang) that I couldn't even recognise that I was the one who wrote some of it. Appreciate the intellectual exercise 25 …

  6. excel - How to use VBA to duplicate a sheet and then rename it …

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

  7. Does VBA contain a comment block syntax? - Stack Overflow

    Apr 29, 2016 · Although there isn't a syntax, you can still get close by using the built-in block comment buttons: If you're not viewing the Edit toolbar already, right-click on the toolbar and …

  8. vba - Detect whether Excel workbook is already open - Stack …

    Feb 21, 2012 · In VBA, I opened an MS Excel file named "myWork.XL" programmatically. Now I would like a code that can tell me about its status - whether it is open or not. I.e. something …

  9. 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 + …

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

    I have a subroutine that calls ActiveWorkbook.RefreshAll to bring new data in from an XML source on a website, and then performs multiple modifications to it. The problem is that not enough …