View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Excel VBA: Create new conditions

Just put additional controls on the userform for the user to enter the
number of LUTS, then you can provide a couple of textboxes for the user to
enter the details. After each set of criteria is entered, you event code
would clear the textboxes and prompt (use a label) for the next LUTS'
criteria.

--
Regards,
Tom Ogilvy

"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/