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: 2
Default Naming a Cell

I want to read through a workbook and on each worksheet
give the first nonblank cell in column 15 the local name
FirstValue. Count is a loop counter for the worksheets
and mRowCtr is a loop counter for the rows on a sheet.
Both the following generate error messages:

ActiveWorkbook.Names.Add Text:="FirstValue", _
RefersTo:="=Sheets(count)!Cells(mRowCtr,C15)"

ActiveWorkbook.Names.Add Name:="Sheets(count)!FirstValue",
_
RefersToR1C1:="=Sheets(count)!Cells(mRowCtr,C15)"

What is wrong? Any help appreciated
 
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
Naming a Cell Zachary Kinning Excel Discussion (Misc queries) 5 February 24th 09 09:54 PM
Naming a cell Steve Excel Discussion (Misc queries) 3 October 7th 08 03:17 PM
Naming a cell from VB Brettjg Excel Discussion (Misc queries) 3 August 26th 08 09:58 AM
Cell and tab naming bpoland58 Excel Discussion (Misc queries) 1 December 13th 07 06:27 PM
Naming a cell Yan Cossette Excel Worksheet Functions 8 September 23rd 06 07:40 PM


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