Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell referencing! help

How do you reference a single cell?...it doesnt have to be specific just
any cell but without naming it as a range...i.e what ever column your
in then look at cell in that column say on row 2?

thanks,

simon


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Cell referencing! help

Simon,

Try something like

Dim Rng As Range
Set Rng = Cells(2,ActiveCell.Column)
Rng.Value = 123


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Simon Lloyd " wrote
in message ...
How do you reference a single cell?...it doesnt have to be

specific just
any cell but without naming it as a range...i.e what ever

column your
in then look at cell in that column say on row 2?

thanks,

simon


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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell referencing! help


Cells(2, Activecell.Column)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Simon Lloyd " wrote in message
...
How do you reference a single cell?...it doesnt have to be specific just
any cell but without naming it as a range...i.e what ever column your
in then look at cell in that column say on row 2?

thanks,

simon


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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell referencing! help

Simon,
You can just reference it as Cells(R,C) where R is the row
number, C the column number. Use Cells(R,C).Value for the
actual value in the cell.
-----Original Message-----
How do you reference a single cell?...it doesnt have to

be specific just
any cell but without naming it as a range...i.e what ever

column your
in then look at cell in that column say on row 2?

thanks,

simon


---
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
cell referencing [email protected] Excel Worksheet Functions 5 February 20th 08 11:11 PM
Referencing Cell Next To Today's Date Cell Docktondad Excel Discussion (Misc queries) 5 May 16th 07 10:25 PM
Cell Referencing? Andy Excel Worksheet Functions 0 June 26th 06 03:07 PM
Cell referencing Gregory A. Wandless Excel Discussion (Misc queries) 3 April 25th 05 05:57 PM
Cell Referencing Karen Howard Excel Programming 0 November 17th 03 09:02 PM


All times are GMT +1. The time now is 12:33 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"