Using VBA to click on Javascript drop down - vba

I am trying to figure out how to navigate through a JS dropdown menu with VBA. I have went through so many forum posts but I just cannot seem to figure this out. In the below website code the option I am trying to select is highlighted "All Open Orders In View". I would really appreciate any guidance.
Here is the website code:
Here is the VBA code that errors "Subscript out of Range":
.document.getelementbyid("Main_Main_mbMain_5")().Click
.FireEvent "onclick"
Thank you for any thoughts or help. Let me know if the full code is needed but the website is sadly not public.
*Edit
Here is a picture of the menu bar in question (without the reference and with the reference below)

My answer was to disregard "Clicking" through the menu and to just export the table I was needing instead. Hopefully that gives someone else an idea if they are stuck like I was.
Thank you for the assistance.

Related

vba selenium if element not visible on screen codes are not working

I would ask you a question. I just now figured out this. In vba selenium if a website loaded fully but you cant see whole site so you need to scroll down to see whole site. vba is applying code if you cant see that class ,id or whatever parameter you are using in your code until you see that thing on your window. let me explain more clear.
i opened a website with vba selenium chromedriver. vba should click a button after filling up form.
if after website fully loaded and button is not visible at first site loaded and i need to scroll down to see the button, button.click will not work. if i scroll down and see button and then only button.click will work.
if i change zoom with
driver.ExecuteScript "document.body.style.zoom='50%';"
then not any click command is working.
anybody has any idea how to do that?
the thing im trying to do; when site loaded captcha is coming. and im giving to user 10 sec to solve captcha. and then automate will click login. if i scroll down to see login button its fine working. if i dont scroll down to see login button code it not working.
next pages im taking from site all links which i want to click with this code;
For Each site In sites
Debug.Print site.Attribute("href")
site.Click ("href")
sayfa.Wait 10000
sayfa.SwitchToNextWindow
sayfa.Window.Close
sayfa.SwitchToPreviousWindow
Next site
it was always giving error. finally i figured out it. if i can see on website without scroll down or up that link which i will click, its working. but if i cant see link code is not working.
i became crazy :)
i will be appreciate if anybody can help.
solved. i added
Site.ScrollIntoView True
If Site.IsDisplayed Then
driver.Wait 10000
Site.ScrollIntoView True
Site.Click ("href")
driver.Wait 20000
driver.SwitchToNextWindow
driver.Window.Close
driver.SwitchToPreviousWindow
Else
End If
Next Adres

VBA PPT Event triggered when chart is added

I am trying to write an VBA-Code that triggers whenever a chart is added in PPT. So far I found
this list: Link. However the options don't work, I thought maybe using "AfterShapeSizeChange", since it comes kind of close. But even this event does not work/trigger.
Anybody has an idea what I could use?
Kind regards

VBA to show/hide data in Word

I am writing a huge procedural manual and would love to be able to hide/show sections as needed. I found the correct way to do it, through bookmarks, check boxes and VBA but am unable to get all three to come together.
These are the instructions I am using:
Link to Instruction Sets
They seem simple enough but I am unable to "view code" by right clicking on the checkbox. Is this a necessary step to add the code or can I just open a new macro and insert the code there?
Other ideas to achieve hiding/showing sections with bookmarks are welcome, too. Thank you!

How to find the event procedure being used in VBA form

How do i find what this Event_Procedure is doing , Totally confused
This came when i right clicked in On Current
Please help
instead of right clicking, click on the ellipsis next to it

CustomAction with Postback in SharePoint 2010 (Or another approach?)

I'm trying to create a custom action that does a postback when clicked in SharePoint 2010.
I've followed the following articles with no luck whatsoever:
http://makarandrkulkarni.blogspot.com/2010/01/sharepoint-2010-ribbon-customization_09.html
http://blog.dennus.net/2010/07/20/ribbon-buttons-with-postback-in-sp2010/
http://blogs.msdn.com/b/sridhara/archive/2010/12/30/implementing-a-post-back-button-in-a-sharepoint-2010-web-part-with-contextual-ribbon.aspx
Frankly, article 3 is a ridiculous amount of work just to do a postback so I didn't even attempt it.
I've managed to get the button on the ribbon but without the CommandUIHandler element in the elements.xml the button is forever disabled.
Anyway, this is what I'm trying to achieve:
I have an external list. I want a custom action on the list that updates a field in another database when it is clicked. Now, this doesn't have to be via a postback, I am open to any suggestions anyone has - I just thought doing a postback would be simple, obvisouly I was wrong. This, so I've heard was stupidly easy in SharePoint 2007.
Thanks in advance for any help/suggestions.
Answer on SP OF.
https://sharepoint.stackexchange.com/questions/11845/custom-action-with-postback-or-another-approach-sp-2010