Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following routine to copy a cell in the named range 'One', paste
the value into cell B4 of worksheet 'Trust', print the named range 'Two' and then repeat this procedure for all of the cells in the named range 'One'. I don't think this makes a difference, but the named ranges are on different sheets. I am receiving a run-time error 13 - type mismatch. Not sure, but the values to be copied from 'One' to cell B4 are stored as text. Is there an easy fix to my macro? Sub printAll() Dim i Dim myCount myCount = Range("One") For i = 0 To myCount With Range("One") .Copy .Worksheets("Trust").Range("B4").Value .Range("Two").Print End With If i = myCount Then End If Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy & Paste Named Range Contents | Excel Programming | |||
After Copy and Paste, Add to an Existing Named Range | Excel Programming | |||
Copy and Paste 2 columns from a named range? | Excel Programming | |||
Finding a named range based on cell value and copy/paste to same sheet? | Excel Programming |