On May 27, 6:29*pm, Daz <darren.black...@xxxxxx> wrote:
Quote:
> On May 27, 5:41*am, "McKirahan" <N...@xxxxxx> wrote:
>
>
> Quote:
> > "Daz" <darren.black...@xxxxxx> wrote in message
> Quote:
> >news:85730564-e3cd-4036-a518-7a645861668f@xxxxxx
> > On May 25, 10:33 am, "McKirahan" <N...@xxxxxx> wrote:
> Quote:
Quote:
> > > "Daz" <darren.black...@xxxxxx> wrote in message
> Quote:
Quote:
> > >news:83da94f4-28e4-46de-9eea-0fc83ac03dee@xxxxxx
>> Quote:
Quote:
> > > > Am trying my hand at my first HTA and would like to ask for some help
> > > > with a process i am tying to implement...
> Quote:
Quote:
> > > > I would like to select one option of 3 options for a given object and
> > > > then once all the objects have had a selection, output the object.name
> > > > to a text file maching the choice... so if i picked disable for object
> > > > 1 and automatic for object 2 and manual for object 3 and automatic for
> > > > object 4 - i would have 3 text files with the object name on a line.
> > > > So the output file for automatic (lets call it automatic.txt) would
> > > > have object1 and on the next line object4.
> Quote:
Quote:
> > > > I think you get what i mean....
> Quote:
Quote:
> > > > here is the test hta code i am working with at the moment...
>> Quote:
Quote:
> > > Will this help? Watch for word-wrap.
> > > Set objFSO = CreateObject("Scripting.FileSystemObject")
> > > For intDIC = 1 To UBound(arrDIC)
> > > * *strCTF = arrDIC(intDIC) & ".txt"
> > > * * Set objCTF = objFSO.CreateTextFile(strCTF,True)
> > > * * * * objCTF.Write arrCTF(intDIC)
> > > * * Set objCTF = Nothing
> > > * * s = s & "<li>" & strCTF & " : " &
> > > * * Replace(arrCTF(intDIC),vbCrLf," ") & vbCrLf
> > > Next
>>> Quote:
> > Thanks for you help and the code... it certainly is the sort of thing
> > i am looking for. *The only issue i have at the moment is that the
> > output from the selected options isn't being captured in the txt files
> > - am i missing something?
> Quote:
> > It works for me...
>
> Found the problem - it is working now...
>
> Just 1 final question... how do i remove the need for all fields to
> have an option checked? i.e. if only 4 fields are checked - then i
> would still like it to write to the txt files obviously omitting the
> field not checked.
>
> Cheers,
> Darren Also the contents of the "name" field will not be object1, 2 etc - it
will be dynamically implemented and will be the value that is desired
to be output to the text files...