April15Hater
Accountant
- Local time
- Today, 17:23
- Joined
- Sep 12, 2008
- Messages
- 349
Hi,
I am trying to combine a string and integer to define a variable. I think it is best shown by example. This is what I thought would work:
The ending result would replace this code:
This is obviously the abridged version of the issue as intWeek can be much higher than 4. WHat i'm really trying to do is make a dynamic variable.
Thanks Guys!
Joe
I am trying to combine a string and integer to define a variable. I think it is best shown by example. This is what I thought would work:
Code:
For IntX = 1 to 4
intWeek & IntX = FindLastBillableWeeks(4, IntX)
Next IntX
Code:
intWeek1 = FindLastBillableWeeks(4, 1)
intWeek2 = FindLastBillableWeeks(4, 2)
intWeek3 = FindLastBillableWeeks(4, 3)
intWeek4 = FindLastBillableWeeks(4, 4)
Thanks Guys!
Joe