ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell referencing! help (https://www.excelbanter.com/excel-programming/298532-cell-referencing-help.html)

Simon Lloyd[_456_]

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/


Chip Pearson

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/




Don Guillett[_4_]

Cell referencing! help
 

try
x=cells(2,activecell.column)

--
Don Guillett
SalesAid Software

"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/




Bob Phillips[_6_]

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/




FMcC

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/

.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com