Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to macro to relative position jk9533 Excel Discussion (Misc queries) 6 October 15th 07 08:11 PM
Array to find relative position - is there a better way? John Michl Excel Worksheet Functions 3 October 8th 07 04:47 PM
Relative position of Employees Bob Davison Excel Worksheet Functions 9 May 8th 07 07:23 PM
Macro relative to button position wesandem Excel Programming 14 January 26th 04 03:08 AM
relative position in macro pabs[_10_] Excel Programming 4 January 3rd 04 06:25 AM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"