+ Reply to Thread
Results 1 to 4 of 4

Update Value of Web Page via Excel Macro

  1. #1
    Registered User
    Join Date
    12-04-2007
    Posts
    30

    Update Value of Web Page via Excel Macro

    Hello

    I have been fighting with a problem for a while with no success.

    I want to update a field on a webpage via excel vba.

    I am using IE11.

    Below is a picture of the source code of the page in question.

    I want to update the Value from 29 to 31 for example.

    I have tried getelementsby ID or tagname none of which works.

    Can anyone help?

    Thank you

    updatevis.JPG

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    As getElementsByID should work …

  3. #3
    Registered User
    Join Date
    12-04-2007
    Posts
    30

    Re: Update Value of Web Page via Excel Macro

    Hi Marc

    I have tried it doesnt.

    The code i am using is as follows:-

    IE.document.getElementsByID("Input_Value").Value = 31

    The error i get is Run time error 438, Object doesnt support this property or method.

    Full code it shown below:-



    Sub Help()

    Dim IE As Object
    'Dim doc As HTMLDocument
    Set IE = CreateObject("InternetExplorer.Application")

    IE.Visible = True
    IE.Navigate "https://xxxxxxxxxxxxxxx"

    Do While IE.Busy
    Application.Wait DateAdd("s", 1, Now)
    Loop

    IE.document.getElementsByID("Input_Value").Value = 31

    End Sub





    What am i doing wrong

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Update Value of Web Page via Excel Macro


    Difficult to guess with no webpage access …

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-25-2018, 06:38 AM
  2. Replies: 1
    Last Post: 01-28-2013, 02:14 AM
  3. Need Macro to Print a template page & update a sequential number field
    By eradline in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2012, 03:32 AM
  4. Update Page Field on selection of another page field in excel pivot table
    By ashwanileon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2011, 12:33 PM
  5. Can I use Excel to update a web page?
    By excel-with-excel in forum Excel General
    Replies: 0
    Last Post: 06-10-2011, 05:11 AM
  6. Save excel as web page and have htm file update automatically
    By Kryer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2006, 07:05 PM
  7. How to auto update Excel Web Page
    By MSW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1