Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default do something to the cell two columns over from curent cell

Hey all. I have a scrap of code that executes when a user doubleclicks
a cell (based on 'Target.Address' thanks to another poster in this
forum!). What I need to do is take that cell address and do something
two cells over based on it. I cant figure out how to add two cells (or
whatever) to the cell address...does this make any sense!?!?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default do something to the cell two columns over from curent cell

You can use Offset

Offset (rows,columns)

Target.Offset(5, 1).Value = "H1"


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"sumGirl" wrote in message ups.com...
Hey all. I have a scrap of code that executes when a user doubleclicks
a cell (based on 'Target.Address' thanks to another poster in this
forum!). What I need to do is take that cell address and do something
two cells over based on it. I cant figure out how to add two cells (or
whatever) to the cell address...does this make any sense!?!?

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
Match the Cell From Two Different Columns Nasir Naqvi New Users to Excel 3 November 30th 06 05:09 AM
get a runing total for"curent date"or(cell)minus prev 30 days( cel dustin Excel Worksheet Functions 2 August 1st 06 09:59 AM
I have two columns 1 & 0 and want to choose those cell with 1 by . Dr. saeed mohtasham nia New Users to Excel 10 August 1st 06 09:35 AM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
every nth cell by columns not rows.... Sampson Excel Worksheet Functions 1 February 24th 05 06:03 AM


All times are GMT +1. The time now is 02:22 AM.

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"