Posts by jryan15

    MODERATOR NOTICE: This topic has also been posted on other sites and may already have an answer elsewhere. Please take this into consideration when answering this question

    Trouble with stockhistory command in workbook open event
    Hi everyone, I have been trying to get the stockhistory function to work with my workbook open event, but whenever the workbook opens, I get a '1004' error.…
    www.mrexcel.com


    Hi everyone,

    I posted this somewhere else and have not received any feedback. I'm hoping someone here may be able to help. I have been trying to get the stockhistory function to work with my workbook open event, but whenever the workbook opens, I get a '1004' error. However when I run the routine manually after the workbook is open, it works fine. Any help would be great. Below is the code in the workbook open routine.


    Thanks!

    Hi there,


    I am looking for help to develop a routine to scrape data from a site that I subscribe to. I have tried a few methods to access the page to be data-scraped, but I have struggled with the login. I am hoping that maybe someone here can help create a routine and parse the data. Below is what I was hoping to accomplish.


    1. Create routine to log into BarCharts for which I can provide temporary login (https://www.barchart.com/login)


    2. Use routine to navigate to the options price history and input variables for Ticker symbol, expiration date, strike price, and call/put.

    - https://www.barchart.com/optio…Price=140.00&symbolType=C


    3. Scrape the results of the table (time, open, high, etc) both into an array within VBA and place the data onto a sheet in excel


    4. Use routine to navigate to a stock price history (am open to any other sources to get stock price history). Enter the fields for ticker, start date, end date, etc. Hopefully automatically trigger the download button, open the file, and pull into excel.

    - https://www.barchart.com/stock…/NVDA/historical-download



    This is not part of the request, but am open to thoughts/suggestions. My overall hope will be to take these routines and make an automation for which I can do the following:

    - Enter a ticker and a time span in excel or via input box

    - Scrape the price history

    - Do some analytical work

    - From this work, automatically scrape the options history multiple times for entries/exits

    - Dump each price history into a tab in excel



    Paypal Transaction ID: 8H873138LY0481211



    Thanks,

    Jason