Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jan Karel,
as an alternative: an international sendkeys.. tested in xl97 nl, xl2k en ,xl2003 de/fr/en Sub QueryPropDialog() Dim ctl As Object, itm As Variant, s As String s = "%" For Each itm In Array(30011, 30101, 1951) Set ctl = CommandBars(1).FindControl(, itm, , , True) s = s & Mid(ctl.Caption, InStr(ctl.Caption, "&") + 1, 1) Next SendKeys s End Sub keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "Jan Karel Pieterse" wrote: Hi Vasant, I know, forgot to include that. Thanks. Regards, Jan Karel Pieterse Excel TA/MVP -----Original Message----- Hi Jan Karel: Not that this is helpful, but: Application.Dialogs(xlDialogExternalDataProperti es).Show gives a similar error. Not sure why. Regards, Vasant. "Jan Karel Pieterse" wrote in message ... Hi All, I wish to show the "External Data Range properties" dialog using code. When I try this: Application.CommandBars(1).FindControl(ID:=1951, recursive:=True).Execute I get "Method 'Execute' of 'CommandBarButton_' failed". Why?? I am sure a querytable is selected when I run the code. This code: Sendkeys "%dda" DOES work, but I don't want to use sendkeys, for obvious reasons. Regards, Jan Karel Pieterse Excel TA/MVP . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Show Data validation List options in a msgbox | Excel Discussion (Misc queries) | |||
Printing Form to Include All Options in Excel | New Users to Excel | |||
chart options show data table | Charts and Charting in Excel | |||
Cannot save external data into file excel system show not respondi | Excel Discussion (Misc queries) | |||
How can I export data from an Excel form into an external Excel d. | Excel Discussion (Misc queries) |