jeffziggy
06-02-2008, 10:29 AM
I've tried searching google for this but no luck...
It's probably very simple to fix but I'm a noob.
Sheets.Add.Name = "temporary"
Sheets("Data Table").Select
ActiveSheet.Range(Cells(2, 1), Cells(21, 4)).Select
Selection.Copy
Sheets("temporary").Select
ActiveSheet.Paste
Application.CutCopyMode = False
I get an error saying "application-defined or object-define error" and when i click debug it points to the ActiveSheet.Range(Cells(2, 1.... line. However, it works if i use the range format "A2:D21"...
I need to use this specific format since I eventually need to put variables in there... any ideas?
Jeff
It's probably very simple to fix but I'm a noob.
Sheets.Add.Name = "temporary"
Sheets("Data Table").Select
ActiveSheet.Range(Cells(2, 1), Cells(21, 4)).Select
Selection.Copy
Sheets("temporary").Select
ActiveSheet.Paste
Application.CutCopyMode = False
I get an error saying "application-defined or object-define error" and when i click debug it points to the ActiveSheet.Range(Cells(2, 1.... line. However, it works if i use the range format "A2:D21"...
I need to use this specific format since I eventually need to put variables in there... any ideas?
Jeff