PC Review


Reply
Thread Tools Rate Thread

How to define the default value?

 
 
Eric
Guest
Posts: n/a
 
      12th May 2010
I would like to set the default value to be false, does anyone have any
suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric

Public endChange As Boolean
 
Reply With Quote
 
 
 
 
JLatham
Guest
Posts: n/a
 
      12th May 2010
The default value for a Boolean is False when it is declared. No problem -
it's already done for you.

Want proof? Put this code right below it and run it repeatedly using F5:
Sub TestEndChange()
MsgBox "endChange is " & endChange
endChange = Not endChange
End Sub

First time you run it, you'll see it is False. After that, it toggles
between True and False.


"Eric" wrote:

> I would like to set the default value to be false, does anyone have any
> suggestions on how to do it in Excel?
> Thanks in advance for any suggestions
> Eric
>
> Public endChange As Boolean

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      12th May 2010
endChange = False


"Eric" <(E-Mail Removed)> wrote in message
news:5D8081B7-EF7B-4181-B582-(E-Mail Removed)...
>I would like to set the default value to be false, does anyone have any
> suggestions on how to do it in Excel?
> Thanks in advance for any suggestions
> Eric
>
> Public endChange As Boolean



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Define a default value from a different form Zulay Microsoft Access 9 28th May 2008 06:56 PM
Define default formatting Thorbjorn Sundboe Microsoft Powerpoint 0 4th Feb 2007 04:36 PM
Define a Default Implementation for an Interface? mark.milley@binaryswitch.com Microsoft VB .NET 1 16th Sep 2006 11:14 PM
How do I define "contains' as the default custom filter? =?Utf-8?B?SiBFbmdpbmVlcg==?= Microsoft Excel Worksheet Functions 2 14th Sep 2005 11:34 PM
How to define Google as Default Search JRS Windows XP Internet Explorer 1 12th Aug 2004 10:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 PM.