LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Referencing a cell as a row number

I need to 1. determine the last row of a column (This row varies each month.)
2. select a cell using this last row number.

I have written the following which solves number 1. above:
Range("B3").End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "X"
Columns("B:B").Select
ActiveWorkbook.Names.Add Name:="Decide", RefersToR1C1:="=Sheet1!C2"
Range("Z1").Select
Selection.NumberFormat = "General"
ActiveCell.FormulaR1C1 = "=Match(""X"",Decide,0)"

but when I try to reference the cell Z1 as the row number, I get a syntax
error.
How do I select a cell in column T and the last row number found as the
value in cell Z1?
 
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
Identifying next number in a range and referencing it Verlaesslichkeit Excel Discussion (Misc queries) 16 September 2nd 08 10:59 PM
referencing the actual row number? How? pete Excel Programming 1 May 23rd 08 06:25 PM
Referencing a tab NUMBER rather than the tab NAME in a formula Booknookoc Excel Discussion (Misc queries) 1 August 17th 07 07:08 PM
Formulas referencing a spaces instead of number ? Ainsley Excel Discussion (Misc queries) 4 May 3rd 06 02:00 PM
Equation Referencing Row Number Stored in Cell Jim Hagan Excel Discussion (Misc queries) 1 April 13th 05 09:04 PM


All times are GMT +1. The time now is 09:58 AM.

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"