« first day (106 days earlier)      last day (1433 days later) » 

2:49 AM
 
3:10 AM
@QHarr - Ever feel like not very many VBA / Excel questions get voted-up? Well, here's the answer.
 
 
7 hours later…
Zoe
10:30 AM
One upvote away from the Kotlin bronze badge :D
 
 
1 hour later…
11:39 AM
@ashleedawg mhmm
@Zoe yey
 
Zoe
Hiya @QHarr
 
 
3 hours later…
2:59 PM
translate thenga from malayalam to english
 
3:56 PM
 
 
3 hours later…
7:13 PM
I have an array like so, arrayFilePaths = Array(Range("G4"), Range("G5"))
but I want to make it dynamic so it gets all file names in a specified range
cant get it to work because of this line in my code
OK = primaryDoc.Open(arrayFilePaths(0))
ive tried many different things including
arrayFilePaths = Range("G4:G5").Value
keep getting subscript out of range.
 
 
2 hours later…
8:51 PM
@excelguy if i understand, you have a list of filenames on a worksheet that you want to loop through, so you're trying to get them into an array?
If that's the case, you don't need to put them into an array... Excel worksheet ranges also act like arrays, so much of the array functionality can also be called against a worksheet range.
 
9:06 PM
:43583976
Sub RangeArrayDemo()
    Dim arr()
    'popoulate array from range
    arr = Range("a1:a7")

    'array is now populated. We can use various functions on it...
    Debug.Print "Array lower bound: " & LBound(arr), "Upper bound: " & UBound(arr)

    'returns "Variant()"... variable self-declared as an array :
    Debug.Print "Arr datatype: " & TypeName(arr)

    With Application.WorksheetFunction
        Debug.Print .CountA(arr) 'returns total # of "positions" in array
        Debug.Print .Count(arr) 'returns # of "populated elements" in array
@QHarr @Zoe do ya every google yourself? I do sometimes... I find it interesting what Google considers most significant about me or other. for example, specific to S.O. with a Google search for qharr site:stackoverflow.com there are thousands of hits including images, some of the top hits:
Your #1 chat-related link is a post about "Blame Canada", lol
 
Zoe
@ashleedawg No
 
@Zoe hmm I do... I also use Google Alerts a lot to get informed of my [real] name showing up online, nearby shootings, earthquakes, etc
 

« first day (106 days earlier)      last day (1433 days later) »