Hola - due to company security can't post from the computer I'm actually working on this so here is the snip of code Excel is hanging up on:
newfn = Application.GetOpenFilename(FileFilter:="Scrub File (*.xls), *.xls", Title:="Please select yesterday's results scrub file")
If newfn = False Then
MsgBox "Process cannot continue without selection of a scrub file"
Exit Sub
Else
Set srcwrkbk = Workbooks.Open(newfn)
srcwrkbk.Activate
Columns("A:R").Copy
ThisWorkbook.Activate
Sheets("ScrubSheet").Paste Destination:=Range("A1")
srcwrkbk.Close True
End If
I commented out these lines:
'Columns("A:R").Copy
'ThisWorkbook.Activate
'Sheets("ScrubSheet").Paste Destination:=Range("A1")
and it works (sans copy / paste) but when they are added back in Excel just locks up. Thoughts?
(Using Excel 2003)
newfn = Application.GetOpenFilename(FileFilter:="Scrub File (*.xls), *.xls", Title:="Please select yesterday's results scrub file")
If newfn = False Then
MsgBox "Process cannot continue without selection of a scrub file"
Exit Sub
Else
Set srcwrkbk = Workbooks.Open(newfn)
srcwrkbk.Activate
Columns("A:R").Copy
ThisWorkbook.Activate
Sheets("ScrubSheet").Paste Destination:=Range("A1")
srcwrkbk.Close True
End If
I commented out these lines:
'Columns("A:R").Copy
'ThisWorkbook.Activate
'Sheets("ScrubSheet").Paste Destination:=Range("A1")
and it works (sans copy / paste) but when they are added back in Excel just locks up. Thoughts?
(Using Excel 2003)