Thread
:
referring to increasing VBA variable name in loop
View Single Post
#
8
Posted to microsoft.public.excel.programming
Dave Peterson
external usenet poster
Posts: 35,218
referring to increasing VBA variable name in loop
It worked fine for me in xl2003.
Alan Beban wrote:
wrote:
I guess great minds think alike since everyone recommended the array,
thanks!
I make no claim for its utility, but I'm curious whether the following
works (I don't have a more current version of xl):
Sub abtest4()
Names.Add Name:="phrase1", RefersTo:="Hello"
Names.Add Name:="phrase2", RefersTo:="Goodbye"
For i = 1 To 2
XL.Speech.Speak Evaluate("phrase" & i)
Next
End Sub
--
Dave Peterson
Reply With Quote
Dave Peterson
View Public Profile
Find all posts by Dave Peterson