Grasping data in the web: how to write in a calendar

Nelson78

Well-known Member
Joined
Sep 11, 2017
Messages
526
Office Version
  1. 2007
Hello everybody.

I'm grasping data in the web via Excel.

I'm stuck in inserting a date in a calendar: how can I write the desired date in this one?



HTML:
<td class="Input" style="width:100%;"><span 

id="Date1_dateInput_wrapper" class="riS RadInput RadInput_Black" 

style="display:block;width:100%;"><input id="Date1_dateInput" 

name="DatePicker1dateInput" class="riBox riEnabled" 

value="01/02/2019" type="text" />




This is my unsuccessfull attempt (not errors but nothing happens).

Code:
HTMLdoc.getElementById("Date1_dateInput").Value = "30/01/2019"


Thank's.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
what if you change .Value to .innerText?
 
Upvote 0
what if you change .Value to .innerText?

Yes, I can write with .innerText, neverthless when I click "Search" the output is not about 30/01/2019 but about today, the default set date.
Maybe something more articulate has to be done.
 
Upvote 0
How are you "clicking" the search button? is this a public web page?
 
Upvote 0
I'm clicking with the following instruction:

Code:
HTMLdoc.getElementById("Search").Click

Unfortunately it is an intranet page not surfable from outside the company.

About the date, manually I can either select the date in the calendar or write "30/01/2019".
 
Upvote 0
I'm tinkering about. Now, error in this line:

Code:
HTMLdoc.getElementById("Date1_dateInput").Value = "30/01/2019"

Run-Time error '438': Object Doesn't support this property or method
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top