简体   繁体   中英

Excel Power Query 2013, Get Combobox Value

I have a stored proc in my SQL DB which I would like to query for data via Power Query in excel. There are three parameters for this procedure for filtering data, and I would like to pass these via Power Query too. The specific parameters should come from some form controls present in my excel sheet - namely some dropdown comboboxes. I'd like to, within the Power Query M, extract the current value of the combobox and pass it as a parameter to the stored procedure.

I know it's possible to gather cell and row/column data within M, but I haven't been able to find out how to collect form data.

Is there an approach I can take for this?

Thanks!

user3261018 ,

you can try following approach:

Assign the combobox value to a named cell, then address it with

 Excel.CurrentWorkbook(){[Name="NameOfCellWithComboboxValue"]}[Content]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM