Subscript out of range error

Posted by Edmond on Stack Overflow See other posts from Stack Overflow or by Edmond
Published on 2010-05-13T19:04:58Z Indexed on 2010/05/20 15:10 UTC
Read the original article Hit count: 273

Filed under:
Private Sub sendemail(esubj)

    ROW_BEGIN = 1
    ROW_END = 72

    Sheets("Input").Select
    Range("A" & ROW_BEGIN & ":S" & ROW_END).Select
    Range("A" & ROW_BEGIN).Select

    fileL = "\\fire\school\FINANCE\Report\FY10\Key Indicator\"
    fileL = fileL & (Left(Range("I7"), 3)) & Right(Year(Date), 2)
    fileL = fileL & "\Key Report - " & myfdate & ".xls"

I have a workbook with a spreadsheet tab named Input. When I try to run it, I get the Subscript out of range message. Why cant it pull from the Input spreadsheet??

© Stack Overflow or respective owner

Related posts about excel-vba