LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Very slow macro

Hi All...........

I have this macro repeated 36 times in my workbook, varying the names,
etc..........they work fine, except they take a LONG time to execute, with
the Status Bar indicating "Calculating Cells", and incrementing every
5%.........can anyone please show me how to speed this up?.....the two
Ranges are D8:BC30 and D33:BC46.

Sub UpdateSkeletonCrewX()

Worksheets("SkeletonCrewX").Select
ActiveSheet.Unprotect
Range("FieldSkeletonCrewX1").ClearContents
Range("FieldSkeletonCrewX2").ClearContents

Worksheets("SkeletonCrewX").Range("FieldSkeletonCr ewX1").Formula =
"=IF(ISNA(VLOOKUP(($C8&""_""&D$1&""_""&D$4),Master Namefile!$B:$S,14,FALSE)),
"""",VLOOKUP(($C8&""_""&D$1&""_""&D$4),MasterNamef ile!$B:$S,14,FALSE))"
Worksheets("SkeletonCrewX").Range("FieldSkeletonCr ewX2").Formula =
"=IF(ISNA(VLOOKUP(($C30&""_""&D$1&""_""&D$4),Maste rNamefile!$B:$S,14,FALSE))
,"""",VLOOKUP(($C30&""_""&D$1&""_""&D$4),MasterNam efile!$B:$S,14,FALSE))"

Worksheets("SkeletonCrewX").Range("c3").Formula = "=now()"
Range("C3").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
Application.CutCopyMode = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True
Range("a5").Select
End Sub

TIA
Vaya con Dios,
Chuck, CABGx3



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow macro :)[_2_] Excel Discussion (Misc queries) 1 March 3rd 10 02:41 PM
Macro is very slow jlclyde Excel Discussion (Misc queries) 2 September 29th 08 04:43 PM
Slow macro AG Excel Programming 5 August 25th 05 01:25 AM
Slow macro alf bryn Excel Programming 5 August 5th 05 12:27 AM
Macro slow down Jonny Excel Programming 3 February 24th 05 01:29 AM


All times are GMT +1. The time now is 05:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"