Thread: Slow VBA code?
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gijs Breedveld Gijs Breedveld is offline
external usenet poster
 
Posts: 13
Default Slow VBA code?

I have code which clears a table which was generated the previous run. The
code is:

Range("b20000:o20000").Select
Selection.AutoFill Destination:=Range("b10:o20000"), Type:=xlFillDefault
Range("b10:o20000").Select

I just want to clear the contents and the formats of the previous table
before I build up the next table.

Is there code which can do this faster? It is very slow. Takes about 60
seconds.

Best regards, Gijs