Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Struggling with the code below:
Sub CopyData10() Dim rng As Range, cell As Range Dim rw As Long Set rng = Worksheets("diego").Range("AB2:AB630") rw = 1 For Each cell In rng If cell.Value = "#N/A" Then Worksheets("Summary Sheet").Cells(rw, "C") = cell.Offset(0, -1) rw = rw + 1 End If Next End Sub The code fails on this line. i guess there is not an equivalent of #N/A in VBA. What do I need to use? By the way, the #N/A is the result of a function; it is not hard-coded. Thanks, Ryan--- -- RyGuy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Paste from Class Sheet to Filtered List on Combined Sheet | Excel Programming | |||
Help to code Macro to Copy fron one sheet and paste in other sheet | Excel Programming | |||
Dificulty in copy and paste when items is filtered in excel 2007 | Excel Worksheet Functions | |||
copy a list of items from word and paste in cell | Excel Discussion (Misc queries) | |||
Copy 2 items to next sheet | Excel Programming |