Multi-dimensional array in VBA for Microsoft Word on Mac
问题 I'm working on a macro to loop through a series of strings ( a1, a2, a3 ) and replace them with a series of corresponding values ( b1, b2, b3 ). I've created an array to store the strings to match: Dim search_strings(1 To 2) As String search_strings(1) = "match1" search_strings(2) = "match2" I can loop through this array with a For Each loop. But I can't figure out how to store and reference the corresponding replacement text. I know that I need some sort of key/value pair. I've tried using a