Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-06-2020, 10:31 AM
PrincessApril PrincessApril is offline GetElementsByName with memo box Windows 10 GetElementsByName with memo box Office 2019
Competent Performer
GetElementsByName with memo box
 
Join Date: Nov 2019
Posts: 102
PrincessApril is on a distinguished road
Default GetElementsByName with memo box

Hi all,



I'm able to enter values into two IE form fields but not the third. I'm having trouble seeing why the same method would not work for the memo box as the textboxes. The boldfaced part of the code below is the part that does not seem to be registering. Any ideas?

Thank you in advance for any assistance you can provide!

Code:
Private Sub EmailBtnCWdown_Click()

Dim ie As Object

Set ie = CreateObject("internetexplorer.application")

ie.Visible = True

ie.Navigate ("https://mazzonicenter.freshdesk.com/support/tickets/new")

    Do Until ie.ReadyState >= 4
        DoEvents
    Loop

Set MCMemail = ie.Document.getElementsByName("helpdesk_ticket[email]")(0)
MCMemail.Value = "Testing@testing.com"

Set subj = ie.Document.getElementsByName("helpdesk_ticket[subject]")(0)
subj.Value = "Testing"

Set desc = ie.Document.getElementsByName("helpdesk_ticket[ticket_body_attributes][description_html]")(0)
desc.Value = "Testing"

End Sub
Reply With Quote
 



Other Forums: Access Forums

All times are GMT -7. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft