
Originally Posted by
xld
But Dave is not running the click procedure, he is getting the value of that combobox, whereas you seem to be trying to run the Analyze_Click procedure. Procedures do not have properties, controls do.
Errr. I don't think so....
[QUOTE]You know the codename of that sheet that holds that button, right?
Dim OtherWkbk As Workbook
Set OtherWkbk = Workbooks("Budget Payee Names.xls")
Application.Run "'" & OtherWkbk.Name & "'!sheet1.cbAddPayee_Click"
Replace sheet1 with the codename for worksheet that owns that commandbutton.
Another way if you know the sheetname, but not its codename:
Dim OtherWkbk As Workbook
Set OtherWkbk = Workbooks("Budget Payee Names.xls")
OtherWkbk.Worksheets("Sheetnamehere").cbAddPayee.Value = True[
/QUOTE]
By either way. I really could care less about Dave. i just want this to work. And like i said
Workbooks(WorkBookNames(0)).Worksheets("Viewer").Analyze_Click.Value = True
Does run the sub but it then fails after completion. No matter though. i just ran them all by hand. I couldn't get Application.Run to work either.