Help with stockhistory command in macro

  • 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!

  • alansidman

    Added the Label Cross Post

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!