Jump to content

Recommended Posts

Posted

Hi all

I'd like to choose a value from a combobox set in a cell of Excel ' sheet

(Outlook_ex.au3 doesn't permit this)

I think I have to work with object, but no idea of what to do with the sheet ...

Any suggestion please ?

 

Posted

Example:

_Excel_RangeValidate($oWorkbook, Default, "A1:A10", $xlValidateList, "Yes;No;Don't know")

Only allows values Yes, No, Don't know in cells A1 to A10.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

I missexplained my problem. I simply want to 'pick' a valu from the combolist

In the original example, I'd like to selecte "Yes !"

 

 

Autoit.png

Posted (edited)

I see.
Then use _Excel_FilterGet and extract the data from the returned array.

Wrong answer. Need to check how to get the result of _Excel_RangeValidate.

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Use

Global $sValidate = $oWorkbook.Activesheet.Range("A1").Validation.Formula1
ConsoleWrite($sValidate & @CRLF)

to get the validation of cell "A1".
Then use StringSplit to get the desired value.

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...