already
Board Regular
- Joined
- Nov 11, 2008
- Messages
- 179
Hi,
I have the following macro to copy and paste a range (never with the same lenght) but it is running slow and I receive an 'excel not responding' message.
The end result is always OK.
How can I speed up this macro?
Thanks in advance for your help.
Kind regards
Al
Sub aantal()
Application.ScreenUpdating = False
Range("b2", Range("b2").End(xlDown)).Cut
Range("s2").Select
ActiveSheet.Paste
Range("c2", Range("c" & Rows.Count).End(xlDown)).Cut
Range("b2").Select
ActiveSheet.Paste
Application.ScreenUpdating = True
End Sub
I have the following macro to copy and paste a range (never with the same lenght) but it is running slow and I receive an 'excel not responding' message.
The end result is always OK.
How can I speed up this macro?
Thanks in advance for your help.
Kind regards
Al
Sub aantal()
Application.ScreenUpdating = False
Range("b2", Range("b2").End(xlDown)).Cut
Range("s2").Select
ActiveSheet.Paste
Range("c2", Range("c" & Rows.Count).End(xlDown)).Cut
Range("b2").Select
ActiveSheet.Paste
Application.ScreenUpdating = True
End Sub