First, you aren't telling your program which sheet the range is in:
Worksheets("Sheet1").Activate
For Each F In Range("A4:A40", "F4:F40")
should be
Worksheets("Sheet1").Activate
For Each F In ActiveSheet.Range("A4:A40", "F4:F40")
If it still doesn't work with the formatting, you may have to change Num to
a string.
--
-John
http://www.jmbundy.blogspot.com/
Please rate when your question is answered to help us and others know what
is helpful.
"MovingBeyondtheRecordButton" wrote:
> How do I take the value from each cell defined in the range("A4:A40,F4:F40")
> and place 1000 before the value and give this new number a name.
>
> Example:
> Number in A4 is 37984
> I want to use 100037984
>
> I have tried...
>
> Dim F As Range
> Dim myNum As Variant
> Dim Num As Long
> Worksheets("Sheet1").Activate
> For Each F In Range("A4:A40", "F4:F40")
> myNum = F.Value
> Num = myNum & 1000
>
>
>