The basic code is a number of simple loops
numLUTS = inputbox: "Enter no. of LUT to create: "
For i 1 To numLUTS
numCriteria = inputbox: "Enter no. of criteria in LUT no. " & i
For j = 1 to numCriteria
criteria = inputbox: "Enter criteria LUT no. " & i & " no "
& j
Next j
Next i
The tricky part is processing criteria when you have it. What do you
want to do with it?
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"wuming " wrote in message
...
Hi all,
I have this program with a userform With a click of a command button in
the userform, i want program to prompt user using input box for no. of
criteria tables to create. (eg. in attchment LUTS)
After prompting for no. of LUTS to create, program would prompt for
each LUTS no. of criteria in each LUT.
Eg: command button click:
inputbox: "Enter no. of LUT to create: " Eg. 3 in the attachment
then next:
inputbox: "Enter no. of criteria in LUT no. 1: " Eg. 5 in the
attachment
inputbox: "Enter criteria no. 1: " Eg. Tan
inputbox: "Enter criteria no. 2: " Eg. Joo
....
....
inputbox: "Enter criteria no. 5: " Eg. Lee
Then this will continue for the 2nd LUT:
inputbox: "Enter no. of criteria in LUT no. 2: " Eg. 4 in the
attachment
inputbox: "Enter criteria no. 1: " Eg. Alexander
....
....
inputbox: "Enter criteria no. 4: " Eg. Hoh
this will continue until all LUT and their criterias are created.
Anyone knows how to do this using vba??
This is really complicated for me for someone of my lvl. :/
pls see attachment for details. Thanks in advanced.
Abyss of the goat
Attachment filename: newsample.xls
Download attachment:
http://www.excelforum.com/attachment.php?postid=635229
---
Message posted from http://www.ExcelForum.com/