Hi
Hope you can help me here.
I am having a problem clearing data from an excel sheet.
I have Data from Column A to DJ with 11,000 rows and the macro keeps failing and will not finish. From column G to DJ there is formulas not sure is this impacting it.
Has anybody seen this happen before or have any advice?
Thanks your help would be very much appreciated.
![]()
Sub ClearingMacro() ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Application.ScreenUpdating = False 'Use the Status Bar to inform user of the macro's progress Application.Cursor = xlWait ' makes sure that the statusbar is visible Application.DisplayStatusBar = True 'add your message to status bar Application.StatusBar = "Your Macro is in clearing old data..." Application.Calculation = xlCalculationManual ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'Clear file Sheets("Master Excel").Select Range("A2").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.ClearContents Range("A2").Select ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'anchor cell Sheets("Macros").Select Range("A2").Select Application.Calculation = xlCalculationAutomatic Application.Cursor = xlDefault Application.ScreenUpdating = True ' gives control of the statusbar back to the programme Application.StatusBar = False ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' End Sub
Bookmarks