Error 1004
New Member
- Joined
- May 15, 2022
- Messages
- 6
- Office Version
- 2010
- Platform
- Windows
Hello.
I need a function but i coudnt do so much about it. I want to pass a string initial value to the function and then function will create 5 rows x 3 columns table as output with simple algoritm.
Assume i will send "A to function and output will be like this:
initVal="A"
for i = 1 to 5
col1=initVal & format(i, "000")
col2= i
col3=i+1
next
Col1 Col2 Col3
A001 1 2
A002 2 3
A003 3 4
A004 4 5
A005 5 6
thanks in advanced
I need a function but i coudnt do so much about it. I want to pass a string initial value to the function and then function will create 5 rows x 3 columns table as output with simple algoritm.
Assume i will send "A to function and output will be like this:
initVal="A"
for i = 1 to 5
col1=initVal & format(i, "000")
col2= i
col3=i+1
next
Col1 Col2 Col3
A001 1 2
A002 2 3
A003 3 4
A004 4 5
A005 5 6
thanks in advanced