Hi Guys,

I am trying to create an excel file with a dropdown list (form) from
within my VFP code.  I have so far managed to do everything I want
except add the 1 form that is required for the sheet.  If I add the
dropdown manually from within excel, I can reference to it from code,
but I cannot seem to create a new one.

Info...

Create an excel object to open up my xls file.

loExcel = CREATEOBJECT('excel.application')


Open up the work book that I manually added a dropdown list onto and
open up the first sheet.

loWorkbook = loExcel.Workbooks.Open('c:\book1.xls',.F.,.T.)
loSheet = loWorkbook.Activesheet

Now get a reference to the dropdown and show where it is getting its
list data from.

loDrop = loSheet.DropDowns(1)
? loDrop.LstFillRange

I can modify the range and then save the file, but I cannot for the life
of me figure out how to create a new dropdown!  Oh, and MSDN is a bag of
#### and doesn't help.

Does anyone have any idea of how to do this?

Thanks

Tristan Leask

Software Developer
Marine Software Ltd

[EMAIL PROTECTED]
www.marinesoftware.co.uk


--------------------------------------------------------------------------------------------------------------
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in 
writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------------------------



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to