I have a very simple spreadsheet that is copying cell values from one workbook to another. At the start of the code I am trying to setup the initial activecell locations by using this code. however, it keeps erroring out but I don't know why. Help greatly appreciated! I am running this on Office XP, but it may run on O2K in the future....
Option Explicit
Public Sub macro1_Click()
Dim delay As Integer
Dim symbol, t As String
ChDir "c:\stock"
Sheets(1).Select
Range("A2").Select
Sheets(2).Select
Range("A2").Select <---------here is where i get the error "Selection method of Range class failed"
....
Thanks!
Chris
Option Explicit
Public Sub macro1_Click()
Dim delay As Integer
Dim symbol, t As String
ChDir "c:\stock"
Sheets(1).Select
Range("A2").Select
Sheets(2).Select
Range("A2").Select <---------here is where i get the error "Selection method of Range class failed"
....
Thanks!
Chris