Relative Position in VBA Array

J

jgdavis

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)
Procedure:="'MyLinkProc " & i & "'"

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top