+ Reply to Thread
Results 1 to 7 of 7

Excel VBA Assistance - Website name does not show as sheet name

  1. #1
    Forum Contributor
    Join Date
    12-10-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20368) 64-bit
    Posts
    101

    Excel VBA Assistance - Website name does not show as sheet name

    Hello,

    I am running this code to pull baseball players statistics. The solution (which is attached) works without issue. The only problem I have is that the name of the player does not display in the Sheet Name. This has worked before and I can't seem to figure out if something has changed or if the solution to retrieve the player name is broken. I have provided the code below as well as the worksheet that I am using. If someone could please let me know how I can see the players name again once I run the query this would be very helpful instead of me trying to go back and try to find out what players stats are whose. Thanks in advance!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kingsdime29x; 01-29-2016 at 10:20 AM.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Excel VBA Assistance - Website name does not show as sheet name

    It is because the structure of the webpage has been changed, there is no "h1" element anymore on this webpage.
    I don't know what exactly you are looking for (because you don't provide any samples), but probably this one :

    In module : Get_Player_Stats
    In subprocredure : Sub GetPlayerStats()

    Change :
    Please Login or Register  to view this content.
    to :
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-10-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20368) 64-bit
    Posts
    101

    Re: Excel VBA Assistance - Website name does not show as sheet name

    Thank you for the reply. An example of what I would like for my file to do is when I click on the Get Stats button from Sheet 1, the first new sheet created (in this case the sheet name should be Wilson Ramos) comes up with the name of Sheet4 instead. The second sheet created would be named Ryan Zimmerman, but instead it is named Sheet 5, the next sheet should be named Danny Espinosa instead of Sheet6, and so on with the URL list. Thank you for looking at this and let me know if you need any other info.

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Excel VBA Assistance - Website name does not show as sheet name

    You are welcome.

    In that case, try to change :

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-14-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Excel VBA Assistance - Website name does not show as sheet name

    Hello,

    I need a quick support from this group.
    I am in need to create a simple Excel Tool that should have the following:
    1) Questions with Answer Options
    2) Set of Questions would be under some categories which will have some weightages
    3) Each Answer Options will have some specific scores
    4) After completion of filling the questionnaire, the result should reflect in an overall score (may be out of 100)

    Can someone help me on this? I think a re-usable macro enabled sheet (in the similar line) should work with some editing/customization that I will do.

    Thank you in advance!

    Cheers.

  6. #6
    Forum Contributor
    Join Date
    12-10-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20368) 64-bit
    Posts
    101

    Re: Excel VBA Assistance - Website name does not show as sheet name

    This worked perfectly! Thank you so much for the help!!

  7. #7
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Excel VBA Assistance - Website name does not show as sheet name

    You are welcome, glad I can help.


    Regards

+ 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: 12-12-2015, 03:32 PM
  2. Help extracting keywords from website to excel sheet
    By yoonit11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2014, 03:23 AM
  3. Assistance with VBA Logic for an Excel sheet.
    By erasmokp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2014, 02:45 PM
  4. Assistance in Clicking a Website Button Using VBA
    By attea2d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2013, 09:55 AM
  5. Fill-in information from Excel sheet to a Website
    By nquadr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2012, 03:45 PM
  6. Importing Website Data into Excel sheet
    By Shadowsgone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2009, 07:34 PM
  7. [SOLVED] How can I import a website into my excel sheet automatically ever.
    By Mohamed El Hefnawy in forum Excel General
    Replies: 2
    Last Post: 04-13-2005, 12:06 PM

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