+ Reply to Thread
Results 1 to 2 of 2

Plug Excel Values into Web

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Plug Excel Values into Web

    I have an excel worksheet with a list of invoices and I am trying to write a macro that will load an Invoice into a text box on a website then click the Insert Button to move the invoice over to a list box....Seems pretty simple... My code runs but now invoices get entered.. essentially nothing happens...

    I am using ie.Document.all.Item to refer to the items but since the object name is hidden I used the object ID Example:

    Set CognosInvoiceInput = ie.Document.all.Item("PRMT_TB_N1F5BDC50x141933C8_NS_").Value = Invoice

    Could this be wrong? If so what is the proper code I should use to set the value of an object field if I only have the object id?






    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Plug Excel Values into Web

    I'm not too hip on the IE interface, but your line
    Please Login or Register  to view this content.
    is not setting the ie item value. It is checking if the item value is the same as invoice and setting CognosInvoiceInput to the location of a true/false value. Maybe if you removed "Set CognosInvoiceInput = " from the line it would work.
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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