LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set combobox of a cell in Excel

Solved!
Go to solution

generally ,it is quite easy to write or read data into or from excel files by labview, but today I need to set the dropdown choices of a cell by labview and it seems it is a little difficult .

 

what I need is as below:

061101.png

for example,I want to set the 3 dropdowm choices by labview to a cell,what shall I do?

thank you!

0 Kudos
Message 1 of 8
(4,151 Views)

hi,

you find below solution for your topic :

Capture1.PNGCapture2.PNG

Best Regards . 

Kudos are welcome .

0 Kudos
Message 2 of 8
(4,122 Views)

@Emna20 I think the OP wants to use LabVIEW to create a combobox in Excel, not to populate a combobox on a LabVIEW FP.

 

@alii001 In Excel, do you mean a form control Developer - Insert - Combo Box (Form Control), an ActiveX control Developer - Insert - Combo Box (ActiveX Control) or the drop-down list available from the right-click menu of an individual cell, sometimes called a data validation list?

0 Kudos
Message 3 of 8
(4,117 Views)

This might be useful if you're trying to use a data validation list.  A description of the parameters for the Validation.Add method can be found on the Microsoft web site.

 

Excel Data Validation.png

0 Kudos
Message 4 of 8
(4,112 Views)
Solution
Accepted by topic author alii001

hi ,

add (true to wait until printing completed ) and (true to Save changes ) .

Cap1.PNG

0 Kudos
Message 5 of 8
(4,101 Views)

Thank you! thank you ! I have tried for several days, but got no answer, you are really kindheart and forums.ni is really a great place.

0 Kudos
Message 6 of 8
(4,095 Views)

Thank you! thank you !

I have tried for several days of it, but got no answer.

you are really kindheart and forums.ni is really a great place.

thank you!


@PsyenceFact  已写:

This might be useful if you're trying to use a data validation list.  A description of the parameters for the Validation.Add method can be found on the Microsoft web site.

 

Excel Data Validation.png


 

0 Kudos
Message 7 of 8
(4,091 Views)

You're very welcome! (As are Kudos Smiley Wink)

 

Andy

0 Kudos
Message 8 of 8
(4,088 Views)