View Single Post
 
Old 02-06-2020, 10:31 AM
PrincessApril PrincessApril is offline Windows 10 Office 2019
Competent Performer
 
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