I'm a novice at VBA and am using the immediate window. I am getting a Run-Time error '1004': Application-defined or object-defined error and I don't know why. I have the following code in my immediate window.
I have a similar code, but for the Income Statement which works just fine. I created the code last week and can't seem to find it now, otherwise I would show you.
Any help on why I'm getting the error would be appreciated and also any ideas where code placed in the immediate window is stored would also be helpful.
Thanks
ActiveCell.QueryTable.Connection="URL;http://finance.yahoo.com/q/bs?s=[""BalanceSheets""]&+Balance+Sheet&annual"
I have a similar code, but for the Income Statement which works just fine. I created the code last week and can't seem to find it now, otherwise I would show you.
Any help on why I'm getting the error would be appreciated and also any ideas where code placed in the immediate window is stored would also be helpful.
Thanks