Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 504
Default check the name of a cell

Im trying to check the cell below the active cell to see if it has a name or
not.
I tried
If ActiveCell.offset(1, 0).Name.Name = "" Then
but it doent like that. Any suggestions?

PS sorry if this posts twice, Im not sure if it went through the first time.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default check the name of a cell

If the cell in question does not have a name you get an error. So you have
to trap that error using On Error.

--
Jim
"Kevin" wrote in message
...
| Im trying to check the cell below the active cell to see if it has a name
or
| not.
| I tried
| If ActiveCell.offset(1, 0).Name.Name = "" Then
| but it doent like that. Any suggestions?
|
| PS sorry if this posts twice, Im not sure if it went through the first
time.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 504
Default check the name of a cell

hmm, cool I can work with that. I did this...
If ActiveCell.offset(1, 0).Name.Name < "" Then

Thanks a bunch for the help, this forum is great!

"Jim Rech" wrote:

If the cell in question does not have a name you get an error. So you have
to trap that error using On Error.

--
Jim
"Kevin" wrote in message
...
| Im trying to check the cell below the active cell to see if it has a name
or
| not.
| I tried
| If ActiveCell.offset(1, 0).Name.Name = "" Then
| but it doent like that. Any suggestions?
|
| PS sorry if this posts twice, Im not sure if it went through the first
time.



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
check or uncheck a check box based on a cell value RTKCPA Excel Discussion (Misc queries) 1 February 3rd 10 03:11 PM
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Cannot check the check mark box in cell ac Excel Worksheet Functions 1 February 15th 08 10:24 PM
check to see if a cell is blank if not populate adjacent cell wit. Frusterated Excel Discussion (Misc queries) 6 September 14th 07 10:55 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM


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