Excel hangs on 'shtA.Cells(person_row, 1).EntireRow.Insert' comman

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a fairly complicated spreadsheet, with a good deal of VB code behind
the macro buttons. In the middle of processing a large file, Excel 2002 seems
to get caught up on itself doing the fairly simple command:
shtA.Cells(person_row, 1).EntireRow.Insert Shift:=xlDown,
copyorigin:=xlFormatFromRightOrBelow

Are there any bug fixes that stop Excel 2002 from hanging during an insert
command?
Are there any equivalent commands that are less prone to causing Excel
2002(10.6713.6804) SP3 to hang?
 
Gordon,
I can't test it (no xlFormatFromRightOrBelow), but does it make a difference
if you remove the "copyorigin" argument ?
Do you have error trapping in the routine ?

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top