• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

VBA not able to get data from website|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / VBA not able to get data from website|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosVBA not able to get data from websi…
sp_PrintTopic sp_TopicIcon
VBA not able to get data from website
Avatar
Vinod Bangar
New Delhi, India

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 1, 2020
sp_UserOfflineSmall Offline
1
May 1, 2020 - 5:33 pm
sp_Permalink sp_Print

Hi Mynda Treacy,

I have office 2019 get free from new laptop on 2 march, in Excel I have to done some office work in VBA macro, but it does not pull data from website, I have another laptop that file is working in other laptop with unpaid Office 2010 but processor of that laptop is slow that why i have to purchaser new one, The very first day that file is doing well then someone suggest me to active micro security in developer tab and make a drive now that file is not working, I makes new macro and reinstall office 2019, but it does not working, I put same inquiry in Microsoft Forum on 9 April and try to contact but as there is a lock-down in New Delhi and all India so not get any help from them. I am attaching one of files as now I am using Office 2010 so it not possible make upload screenshots again. Please give me some direction to solve this quarry as soon as possible as I have to work from home with non assistance IT person since I am not trained on it.

Vinod Bangar

sp_AnswersTopicSeeAnswer See Answer
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1518
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
May 1, 2020 - 7:19 pm
sp_Permalink sp_Print

Hi Vinod,

I can see that you are trying to get something from the NSE website but I don't know exactly what it is you are trying to do.

Please give a clear description of the problem and the result you are looking for.

regards

Phil

Avatar
Vinod Bangar
New Delhi, India

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 1, 2020
sp_UserOfflineSmall Offline
3
May 1, 2020 - 10:12 pm
sp_Permalink sp_Print

Dear Phil,

I have a make a Macro-Enabled workbook, it pull daily live and close market Future data from the website. this file is working in Office 2010 unpaid or Office without keys, but the same file is not working in Office 2019 which I get free of cost with new laptop as Office 2019 is paid in India, I want to that how I can use the same file in the Office 2019 Excel as this file does not pull data from the website after click the button it make system hang and I have to close this file by Esc key or Task Manager. As their are some advance features in Excel 2019 but not in office 2010 so I want to use that features.

Thanks & regards

Vinod Bangar

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1518
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
May 2, 2020 - 11:33 am
sp_Permalink sp_Print

Hi Vinod,

When I try to run your code it takes forever 'Contacting the server ...' and I eventually stopped the query.

I wrote a new web query and ran that and also took forever but by repeatedly pressing Esc to cancel the query (or at least stop the current step in the query) the data from NSE was eventually loaded.

I tried using Power Query just to see how that performed and it also took several minutes just sitting there 'Connecting'.

I loaded the URL into my browser and it too had issues loading the site.  Sometimes it worked,sometimes it did not.

Looking at the browser debugging tools I can see that the NSE website generates a few 500 Internal Server Errors - this is not good.  It's also generating JavaScript errors to uncaught references.

These errors don't indicate that the site is put together too well and such errors may be the cause of the slow loading time in Excel.  Perhaps older versions of Excel were more forgiving of such website errors but 2019 doesn't seem to like them.

I can load other sites without issue so the problem does appear to be the NSE site itself.

Phil

sp_AnswersTopicAnswer
Answers Post
Avatar
Vinod Bangar
New Delhi, India

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 1, 2020
sp_UserOfflineSmall Offline
5
May 2, 2020 - 12:49 pm
sp_Permalink sp_Print

Dear Phil,

Thanks, you have taken your precious time for me.

Regards

Vinod Bangar

Avatar
Vinod Bangar
New Delhi, India

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 1, 2020
sp_UserOfflineSmall Offline
6
May 5, 2020 - 11:30 am
sp_Permalink sp_Print

Dear Phil,

Can I Install both MS Office, Office 2010 and Office 2019 scientifically, using Office 2010 for Data pulling from Macro Run and stored that data in Excel 2019 sheet. If Possible what is the process.

Regards,

Vinod Bangar

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1518
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
7
May 5, 2020 - 12:25 pm
sp_Permalink sp_Print sp_EditHistory

Hi Vinod,

It's possible to install multiple versions of Office together, at least it used to be, but I've not done it with 2019.

You can get issues with the different versions overwriting various files on each other, and Outlook may not work properly.

You might be better off with another approach, like using Python to get the data you want or using a 3rd party program to sit between VBA and the website - like Selenium.

These posts will get you started with these methods

https://www.myonlinetraininghu.....ling-forms

https://www.myonlinetraininghu.....data-excel

https://www.myonlinetraininghu.....ng-sockets 

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: AndyC
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6219
Posts: 27276

 

Member Stats:
Guest Posters: 49
Members: 31903
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.