Every time I use the set command to point to a range of cells ready for me to load an array into them I get 1004 error code.
Any Ideas.
Snipit of code
Dim Reportrange as Range
Sheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Select
Sheets(Sheets.Count).Name = reportname
Worksheets(reportname).Select
Range("A1").Select
Set ReportRange = worksheets(reportname).Range(Range(Cells(UBound(SickReport, 2), 1), Cells(1, 6))
I get error code 1004?
Any Ideas.
Snipit of code
Dim Reportrange as Range
Sheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Select
Sheets(Sheets.Count).Name = reportname
Worksheets(reportname).Select
Range("A1").Select
Set ReportRange = worksheets(reportname).Range(Range(Cells(UBound(SickReport, 2), 1), Cells(1, 6))
I get error code 1004?