This used to work then all of a sudden started getting errors:
Method 'Range' of 'object' Global Failed
starting at line with:
Range("G2.G101").Value = "=E2-B2"
What gives?
Sub ReadCSV()
Dim symbol, hi, lo, startdate, enddate, hi2, lo2, hi3, lo3, d5hi, d5lo, d10hi, d10lo, d20hi, d20lo, dayrng As Variant
Dim symbpos As Range
Dim MainWkbk, NextWkbk As Workbook
Set MainWkbk = ActiveWorkbook
'symbol = InputBox("Enter symbol")
symbol = ActiveCell.EntireRow.Cells(1).Value
Workbooks.Open Filename:="f:\downloads\daily_" & symbol & ".csv"
Set NextWkbk = ActiveWorkbook
Range("G1").Value = "Net Ch fr Open"
Range("G2.G101").Value = "=E2-B2"
End Sub