Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

IsNull and a named range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bluegrassstateworker - 31 Oct 2006 22:05 GMT
I have a one-cell-named range called REQT and if there is a value
inserted, I want to go to a worksheet called RFP.  The variable
BeenThereAlready ensures this happens only once.  I made this one cell
a named range so that any modifications referring a specific cell would
not require a change in code.  What I have below is not working and the
solution is simple but I have hit a wall.  Any suggestions appreciated.

Private Sub Worksheet_Change(ByVal Target As Range)
   If IsNull((Range("REQT").Value)) = False And BeenThereAlready =
False Then
     Sheets("RFP").Activate
     Sheets("RFP").Range("A1").Select
     BeenThereAlready = True
   End If
   If IsNull((Range("REQT").Value)) = True And BeenThereAlready = True
Then
       BeenThereAlready = False
   End If
End Sub
Dave Peterson - 31 Oct 2006 22:48 GMT
I think I'd drop the IsNull check and either use:

if isempty(me.range("reqt").value) ...
or
if me.range("reqt").value = "" ....

> I have a one-cell-named range called REQT and if there is a value
> inserted, I want to go to a worksheet called RFP.  The variable
[quoted text clipped - 15 lines]
>     End If
> End Sub

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.