excel – Adding to a string array alphabetically
Questions: I’m looking for a way to add a string (from a cell) to a string array alphabetically. For instance: string array = {"apple", "banana", "orange"} add "cherry": string array = {"apple",...
Questions: I’m looking for a way to add a string (from a cell) to a string array alphabetically. For instance: string array = {"apple", "banana", "orange"} add "cherry": string array = {"apple",...
Questions: I got help with this code but when it runs it does not execute what it needs to do. I’m trying to extract words that are underlined and italicized from row C of the first sheet and mo...
Questions: The ultimate goal of this procedure is to delete all rows in the “TestData” table that have a user which is listed in the “SysAccts” table (on the “Lists”...
Questions: I’ve only been using VBA for a couple of weeks now so bear with me. I’m trying to change a macro so that it reads from an array instead of a range. One of the sections I need to...
Questions: I have a 2-day array like the following: myArray(1 to 100, 1 to 3) My normal way to paste an array is like this: With ActiveWorkbook.Worksheets("Semesters") If IsEmpty(.Range("A2")) Then .A...
Questions: In Excel, is there a built-in formula/function to append or prepend a value to an array? So suppose I have my own UDF, MyFunc(…) that returns an array of values. Can I append or prepr...
Questions: I am having an issue with VBA crashing whenever the code is prematurely ended via either an End Statement or the Reset button while debugging. This only occurs when an array is assigned to ...
Questions: I have an issue where I’d like to store the contents of a userform in an array when the userform is closed. I thought I had the syntax correct but it seems not to repopulate upon user...
Questions: I have the following code, which based on the logic it should work. I want it to be (4,3,2,1), but at the end of the loop I get t=(4,3,3,4) Sub try() Dim t As Variant t = Array(1, 2, 3, 4) ...
Questions: I want to use COUNTIF function to evaluate how many items out of 2,0,0,5 are greater than 2? In Countif function, first argument is range and second is criteria. I have tried the below form...