View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
jgdavis jgdavis is offline
external usenet poster
 
Posts: 1
Default Relative Position in VBA Array

I have the following code:

Function DDEUpdate()
Dim colTimeStamp As String

colTimeStamp = "I"

varr = ThisWorkbook.LinkSources(xlOLELinks)

For i = LBound(varr, 1) To UBound(varr, 1)

If IsEmpty(ThisWorkbook.ActiveSheet.Range (colTimeStamp
i).Value) Then

ThisWorkbook.SetLinkOnData Name:=varr(i)
Procedu="'MyLinkProc " & i & "'"

Else: ThisWorkbook.SetLinkOnData Name:=varr(i)
Procedu=""

End If

Next

End Function


The varr(i) returns the OLElink based on a sorted order and th
Range(colTimeStamp & i) returns the value of i. How do I find the ro
that varr(i) is referencing?

Thanks,

Joh

--
Message posted from http://www.ExcelForum.com