> Post your code...
>
[quoted text clipped - 4 lines]
> >
> > Problem: this takes a long time to execute. Is there a faster way?
If you really care about the cells that you skipped...
Option Explicit
Sub testme()
Dim myDate As String
Dim myMonth As Long
Dim DestSheet As Worksheet
Dim DestRng As Range
Dim OrigRng As Range
Dim gCtr As Long 'groupCounter
Dim DestAddr As Variant
Dim HowMany As Variant
Dim FromRow As Variant
Dim wks As Worksheet
'what sheet is getting these values?
Set wks = ActiveSheet
'six groups starting in
'ai7, ai16, ai21, ai28, ai33, ai38
'for this many cells
' 8, 4, 6, 4, 3, 5
'starting in rows
' 5, 14, 19, 26, 31, 35
DestAddr = Array("ai7", "ai16", "ai21", "ai28", "ai33", "ai38")
FromRow = Array(5, 14, 19, 26, 31, 35)
HowMany = Array(8, 4, 6, 4, 3, 5)
If UBound(DestAddr) = UBound(HowMany) _
And UBound(FromRow) = UBound(HowMany) Then
'whew, they match!
Else
MsgBox "Design error -- contact Carlee @ xxxx"
Exit Sub
End If
myDate = Trim(Worksheets(DestSheet).Range("B4").Value)
myDate = myDate & " 1, 2000"
If IsDate(myDate) = False Then
MsgBox "Not a month in B4 of " & DestSheet
Exit Sub
Else
myMonth = Month(myDate)
End If
For gCtr = LBound(DestAddr) To UBound(DestAddr)
Set DestRng = wks.Range(DestAddr).Resize(HowMany(gCtr), 1)
Set OrigRng = Worksheets("Year at a Glance") _
.Cells(FromRow, "B").Offset(0, myMonth) _
.Resize(HowMany(gCtr), 1)
DestRng.Value = OrigRng.Value
Next gCtr
End Sub
Untested, but it did compile.
> Here is the code i am using
>
[quoted text clipped - 398 lines]
> > > --
> > > Carlee

Signature
Dave Peterson
Bob Phillips - 07 Dec 2007 22:14 GMT
Hmmm! Replying before the question is asked now Dave?

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> If you really care about the cells that you skipped...
>
[quoted text clipped - 462 lines]
>> > > --
>> > > Carlee
Dave Peterson - 08 Dec 2007 00:41 GMT
Ugh.
I was screwing around with the time format in the control panel and removed the
AM/PM indicators. The next time I set the time, it screwed up (confused by the
lack of AM/PM???).
I've been posting with the wrong times for at least the better part of a day!
Glad you noticed and yelled!
> Hmmm! Replying before the question is asked now Dave?
>
[quoted text clipped - 476 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Bob Phillips - 08 Dec 2007 17:47 GMT
> Ugh.
>
[quoted text clipped - 3 lines]
> by the
> lack of AM/PM???).
And there I was thinking it was psychic.
> I've been posting with the wrong times for at least the better part of a
> day!
You don't think I read your posts (normally) do you? I said some time ago
that I had to stop reading your posts after RD said I was starting to sound
like you <bg>.
> Glad you noticed and yelled!
Peeved me that your post popped up above mine half a day later than mine
<ebg>
Dave Peterson - 08 Dec 2007 18:00 GMT
It may have been more psyco than psychic--but what's a couple of letters???
And from now on, I'll be changing the time to just a few minutes before your
posts! <gd&r>
> > Ugh.
> >
[quoted text clipped - 17 lines]
> Peeved me that your post popped up above mine half a day later than mine
> <ebg>

Signature
Dave Peterson
Dave Peterson - 08 Dec 2007 20:44 GMT
or psycho
(darn spelling errors!)
> It may have been more psyco than psychic--but what's a couple of letters???
>
> And from now on, I'll be changing the time to just a few minutes before your
> posts! <gd&r>
<<snipped>>
Bob Phillips - 08 Dec 2007 22:44 GMT
I thought you had been doing that for the past 5 years <gGg>
BTW <gd&r>, don't think I know that one.

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> It may have been more psyco than psychic--but what's a couple of
> letters???
[quoted text clipped - 27 lines]
>> Peeved me that your post popped up above mine half a day later than mine
>> <ebg>
Dave Peterson - 09 Dec 2007 00:20 GMT
Grin, duck and run.
(If it wasn't soooo much work, I would have changed the time for this post!)
> I thought you had been doing that for the past 5 years <gGg>
>
[quoted text clipped - 43 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Bob Phillips - 09 Dec 2007 00:35 GMT
LOL!

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Grin, duck and run.
>
[quoted text clipped - 52 lines]
>> >
>> > Dave Peterson
Range("AI7:AI42").Value = Worksheets("Year at a
Glance").Range("C5:C39").Value

Signature
Jim
| Here is the code i am using
|
[quoted text clipped - 390 lines]
| > >
| > > Problem: this takes a long time to execute. Is there a faster way?
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
Select Case Trim(UCase(Worksheets(destSheet).Range("B4")))
Case Is = "JANUARY"
Worksheets("Year at a Glance").Range("C5:C39").Copy Range("AI7")
Case Is = "FEBRUARY"
Worksheets("Year at a Glance").Range("D5:D39").Copy Range("AI7")
Case Is = "MARCH"
Worksheets("Year at a Glance").Range("E5:E39").Copy Range("AI7")
Case Is = "APRIL"
Worksheets("Year at a Glance").Range("F5:F39").Copy Range("AI7")
Case Is = "MAY"
Worksheets("Year at a Glance").Range("G5:G39").Copy Range("AI7")
Case Is = "JUNE"
Worksheets("Year at a Glance").Range("H5:H39").Copy Range("AI7")
Case Is = "JULY"
Worksheets("Year at a Glance").Range("I5:I39").Copy Range("AI7")
Case Is = "AUGUST"
Worksheets("Year at a Glance").Range("J5:J39").Copy Range("AI7")
Case Is = "SEPTEMBER"
Worksheets("Year at a Glance").Range("K5:K39").Copy Range("AI7")
Case Is = "OCTOBER"
Worksheets("Year at a Glance").Range("L5:L39").Copy Range("AI7")
Case Is = "NOVEMBERL"
Worksheets("Year at a Glance").Range("M5:M39").Copy Range("AI7")
Case Is = "DECEMBER"
Worksheets("Year at a Glance").Range("N5:N39").Copy Range("AI7")
End Select
With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
End With

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Here is the code i am using
>
[quoted text clipped - 392 lines]
>> >
>> > Problem: this takes a long time to execute. Is there a faster way?
Dave D-C - 07 Dec 2007 22:53 GMT
or even:
Dim iMonth%, iCol%
iMonth = Month(Trim(Worksheets(destSheet).Range("B4")) & " 1/2000")
iCol = 2 + iMonth
With Worksheets("Year at a Glance")
.Range(.Cells(5, iCol), .Cells(39, iCol)).Copy Range("AI7")
End With
> With Application
> .ScreenUpdating = False
[quoted text clipped - 32 lines]
> .Calculation = xlCalculationAutomatic
> End With
Dave D-C - 07 Dec 2007 23:03 GMT
OK, I didn't notice skipped cells.
Ignore my post.
Carlee <Carlee@discussions.microsoft.com> wrote:
Range("AI14") =
Range("AI16") =
>or even:
> Dim iMonth%, iCol%
[quoted text clipped - 3 lines]
> .Range(.Cells(5, iCol), .Cells(39, iCol)).Copy Range("AI7")
> End With