Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Search Cell Address and Cell Names in VBA Editor

Does anyone know how to do a search on a cell name or cell
address to see if it has been referenced in the VBA
modules of a spreadsheet? Lets say I have a cell A10
(named "StarCell"). Lets also assume the cell is within a
range called "Revenue". I want to be able to search the
code in my VBA Editor to see if A10("StartCell") is used.
I am assuming that I would look for the following
occurences in all the modules in the spreadsheet:

1) Range("StartCell")
2) Range("Revenue").Cells(X,Y) which is the same as the
address of "StartCell"
3) Check all Offset methods to see if any of the cell
addresses in each offset are equal to the address
of "StartCell"


Does anyone know how to do this?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Search Cell Address and Cell Names in VBA Editor

I don't have any specific code for you, but you can look at

http://www.cpearson.com/excel/vbe.htm

to get the start on an approach to do it.

--
Regards,
Tom Ogilvy

"ExcelMonkey" wrote in message
...
Does anyone know how to do a search on a cell name or cell
address to see if it has been referenced in the VBA
modules of a spreadsheet? Lets say I have a cell A10
(named "StarCell"). Lets also assume the cell is within a
range called "Revenue". I want to be able to search the
code in my VBA Editor to see if A10("StartCell") is used.
I am assuming that I would look for the following
occurences in all the modules in the spreadsheet:

1) Range("StartCell")
2) Range("Revenue").Cells(X,Y) which is the same as the
address of "StartCell"
3) Check all Offset methods to see if any of the cell
addresses in each offset are equal to the address
of "StartCell"


Does anyone know how to do this?




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
converting email address names in a range of cells to real names John Excel Worksheet Functions 1 May 19th 10 03:44 PM
Trim a cell that has names and address to only show name Christie Excel Worksheet Functions 8 January 20th 09 12:39 AM
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
Formula Editor Result Different than the one in the Cell? kissingurami Excel Discussion (Misc queries) 1 November 25th 07 01:50 PM
How to create table of cell names with the name's cell address WildwoodEngr Excel Discussion (Misc queries) 1 October 26th 06 02:52 PM


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