+ Reply to Thread
Results 1 to 2 of 2

VBA code works for one website but does not work for another

  1. #1
    Registered User
    Join Date
    07-15-2021
    Location
    US
    MS-Off Ver
    MS-19
    Posts
    1

    VBA code works for one website but does not work for another

    I am trying to fill out a webform by using information on excel. I found the following code online:
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    Although it worked for the initial website I found online, when I tried to apply it to the website I needed (which I am unable to reveal), it said that the object of '.getElementById' is not recognized. Note: I correctly replaced the "id" with the id of the text slot of the website I needed but it still did not work. I am relatively new to VBA so any and all ideas or theories would be deeply appreciated.
    Last edited by 6StringJazzer; 07-20-2021 at 08:23 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: VBA code works for one website but does not work for another

    Quote Originally Posted by ABM1 View Post
    Note: I correctly replaced the "id" with the id of the text slot of the website I needed but it still did not work.
    This is almost certainly the problem and can't be properly diagnosed without seeing the code for the web page.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] code works on exel2003 doesn't work 2010
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-01-2020, 09:49 AM
  2. Replies: 4
    Last Post: 01-04-2015, 03:45 PM
  3. [SOLVED] VBA code to read last filled row of data column, works, but doesnt work
    By mDevel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2013, 01:34 AM
  4. Code does not work on some PC's, works on others
    By csegal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2013, 05:48 PM
  5. Code that works in OfficeXPsp2 French does not work in Office2003 English
    By MD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2012, 08:50 AM
  6. Getting this code to work on MAC (ERROR 68) - works fine on Windows
    By LT1511 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 11:09 PM
  7. Why a code that works for a sheet does not work for all?
    By marlonsaveri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2011, 12:29 PM

Tags for this Thread

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