Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting email address names in a range of cells to real names | Excel Worksheet Functions | |||
Trim a cell that has names and address to only show name | Excel Worksheet Functions | |||
Return cell address of a cell based on contents of cell. | Excel Worksheet Functions | |||
Formula Editor Result Different than the one in the Cell? | Excel Discussion (Misc queries) | |||
How to create table of cell names with the name's cell address | Excel Discussion (Misc queries) |