About 76,500 results
Open links in new tab
  1. How to create and write to a txt file using VBA - Stack Overflow

    I have a file which is manually added or modified based on the inputs. Since most of the contents are repetitive in that file, only the hex values are changing, I want to make it a tool generated f...

  2. excel - Skip to next iteration in loop vba - Stack Overflow

    I am trying to create a simple conditional loop that will go to the next iteration if a condition is true. The code I have so far is: For i = 2 To 24 Level = Cells(i, 4) Return = Cells(i, 5...

  3. Multiple Worksheet_Change events in VBA code - Stack Overflow

    Feb 13, 2019 · I want to merge two Worksheet_Change events. The aim of the code is to convert any uppercase text in the cell ranges given to lowercase. I tried copying both into the same …

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

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

    With ActiveWorkbook.Connections("XMLTable") .Name = "XMLTable" .Description = "" End With ActiveWorkbook.Connections("XMLTable").refresh The class ActiveWorkbook.Connections does …

  6. Excel VBA: Copying multiple sheets into new workbook

    Beside variable declaration error, are you trying to copy-paste the Print Area of each worksheet to Range (A1) of the same? Thought you are trying to paste into a new workbook.

  7. vba - Runtime Error '5852' Requested object is not available. Issue ...

    Jul 28, 2021 · Finally got this resolved too, but not using your tip. The problem was that even though I was saving my source docs to my desktop, my desktop was linked to company SharePoint (and …

  8. vb6 - Add newline to VBA or Visual Basic 6 - Stack Overflow

    I want to concatenate two strings with a linebreak between them. st = "Line 1" + newline + "Line2" How do I add a newline to VBA or Visual Basic 6?

  9. What datetime format does Cdate() return in VBA? - Stack Overflow

    Aug 24, 2022 · I am converting strings into a date format in VBA. The string must first be parsed into date format (whilst still a string), before being cast to a date. E.g I must first transform …

  10. How to make an array in excel vba with no set limit?

    I want to create a list of numbers using an array, but I don't want the last number to be known, instead it's dependent on other factors, for example you ask a user what the top limit is, and the a...