View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel[_52_] joel[_52_] is offline
external usenet poster
 
Posts: 1
Default Code For Copy Copies Twice


Can you put a STOP at the top of this section and see if the last
section of code is causing the problem or the problem is occuring before
this point. If so can you keep putting the stop in different loications
until you find which section of the code is causing the problem.

'add stop here
Stop

'copy summary section from main worksheet
Dim wsrng As Range
Dim myarray()
Dim i As Long
Set wsrng = Worksheets("Bookings").Range("w1:AM75")

myarray = Array("Bk01-09", "Bk02-09")

For i = LBound(myarray) To UBound(myarray)

Worksheets(myarray(i)).Range("w1:AM75").Formula = wsrng.Formula

'replace formula with .value if you want to copy cell values
Next

Next ws

End Sub


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=146642