I had a script running but for some reason now it does not work. The Data Source dialog opens but then it just stalls there, nothing happens. When I remove the loop I get the index out of range error on "ctrlset("ListViewDataSources").Text = "Data connection name"" Can someone help? 'vbscript set ui = application.userinterface set comp = document.componentset("Drawing") set proj = ui.Panes("Project") set tree = proj.ControlSet("TreeViewComponents") tree.Text = comp.Name ui.InvokeCommand "ViewProjectReLink", "pane: Project" Do ' Nothing Loop Until UI.ModalDialog.Caption = "Data Source" set dlg = ui.modaldialog set ctrlset = dlg.ControlSet ctrlset("ListViewDataSources").Text = "Data connection name" ctrlset("ButtonOK").Push()
"The blessing in life is finding the torture you are comfortable with." - Jerry Seinfeld, 6/26/2013 |