Onnesh
Onnesh

Reputation: 1189

Toolbar button doesnt get accessed at all

I am using the following code but the toolbar button doesnt get accessed at all. The error is "unknown error"

Window(window_name).WinToolBar("Example Toolbar").Press "Print"

Here Example Toolbar is added to the object repo, and gets highlighted correctly.

Upvotes: 2

Views: 1387

Answers (1)

Motti
Motti

Reputation: 114715

Are you sure the error is Unknown Error and not Cannot identify the specified item of the Standard object....

Perhaps you're using the wrong name, this will give you the names of the items in the WinToolBar

MsgBox Window(window_name).WinToolBar("Example Toolbar").GetContent()

Upvotes: 2

Related Questions