ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   False and msoFalse (https://www.excelbanter.com/excel-programming/360356-false-msofalse.html)

Fox via OfficeKB.com

False and msoFalse
 
Is there a difference between False and msoFalse (and True vs. msoTrue)? Can
I just change all msoFalse to just False and remove the reference to the
Microsoft Office 9.0 object library or is the Microsoft Office 9.0 object
library normally selected by default in a project along with the Microsoft
Excel 9.0 object library? Thanks.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200605/1

Tom Ogilvy

False and msoFalse
 
it is normally selected.

? false
False
? msofalse
0
? true
True
? msoTrue
-1

--
Regards,
Tom Ogilvy


"Fox via OfficeKB.com" wrote:

Is there a difference between False and msoFalse (and True vs. msoTrue)? Can
I just change all msoFalse to just False and remove the reference to the
Microsoft Office 9.0 object library or is the Microsoft Office 9.0 object
library normally selected by default in a project along with the Microsoft
Excel 9.0 object library? Thanks.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200605/1


Chip Pearson

False and msoFalse
 
Both True and msoTrue resolve numerically to -1, so you can use
either one.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Tom Ogilvy" wrote in
message
...
it is normally selected.

? false
False
? msofalse
0
? true
True
? msoTrue
-1

--
Regards,
Tom Ogilvy


"Fox via OfficeKB.com" wrote:

Is there a difference between False and msoFalse (and True vs.
msoTrue)? Can
I just change all msoFalse to just False and remove the
reference to the
Microsoft Office 9.0 object library or is the Microsoft Office
9.0 object
library normally selected by default in a project along with
the Microsoft
Excel 9.0 object library? Thanks.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200605/1





All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com