LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Links a cell to code


Fernandoalberte Wrote:
One last thing, is it possible to say is a cell is in a range (eg if the
range is a1:d5, and the cell selected is b3 - therefore in the range)
then run the code.

So rather than specifiying eth cell you are specifying the range...does
thsi make sense?


Yes it is. I'm not sure how to do that directly in Excel (I came to
Excel after programming for many years and tend to do things the long
way round.....) You have the current cells address (ie Target.address).
You can then compare this with your range quite easily.

Unfortunately I don't have any example code handy.

Regards

Rich


--
Rich_z
------------------------------------------------------------------------
Rich_z's Profile: http://www.excelforum.com/member.php...o&userid=24737
View this thread: http://www.excelforum.com/showthread...hreadid=383130

 
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
Creating XL links in VBA code Joel Excel Programming 0 May 24th 05 06:49 PM
Any way to update links tru VBA code? nrage21[_47_] Excel Programming 1 March 5th 04 05:32 PM
Does workbook contain code and links Paul Christie Excel Programming 2 August 1st 03 06:25 AM
VBA Code for Links to Excel workbooks Sandy[_3_] Excel Programming 2 July 23rd 03 03:14 AM
Code for existing links Sandy[_3_] Excel Programming 3 July 15th 03 07:42 PM


All times are GMT +1. The time now is 03:20 PM.

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

About Us

"It's about Microsoft Excel"