My list box on my userform is showing TRUE as -1 and FALSE as 0, does anyone know a way I can make it show the actual value of TRUE and FALSE?
Thanks!!
My list box on my userform is showing TRUE as -1 and FALSE as 0, does anyone know a way I can make it show the actual value of TRUE and FALSE?
Thanks!!
Last edited by AliGW; 03-31-2020 at 11:59 AM. Reason: Solved tag added - no need to edit thread title or add solved to post. Thanks.
Hey CM,
I put a single quote in front of your "True" and made it 'True to try to convert it to text. The clicked the button and "magic" it showed as True instead of -1. I guess Excel thinks "True" is really "-1". Why???
Can you deal with putting a single quote in front of those "True"?
Hope this helps. Maybe somebody else will have a better answer.
Edit: If you use "Done" for True and "Not Yet" for False it shows the full word and means the same.
Last edited by MarvinP; 03-31-2020 at 11:31 AM.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
That works, it just doesn't work with my conditional formatting. I could probably live with that. I've never ran into this problem before. I have another sheet where it works fine.
Last edited by AliGW; 03-31-2020 at 11:36 AM. Reason: Please don't quote unnecessarily!
You're right. I'll just use "complete" or something. Thanks!!
Last edited by AliGW; 03-31-2020 at 11:36 AM. Reason: Please don't quote unnecessarily!
With your code a workaroundPlease Login or Register to view this content.
Last edited by nigelog; 04-01-2020 at 06:41 AM.
Thanks for all the help!
Did you try the code posted above?? Just curious if it works for you there as a bit Heath Robinson
Sometimes True = 1 and sometimes -1. That is why I gave my
MarvinP I have neve seen it in VBA but worksheet function it's so.
Here was an old discussion on True is 1 or -1.
https://www.excelforum.com/excel-gen...worksheet.html
True =1 in a cell, -1 for vba.
Recognize as True other than 0(False) for both.
Please Login or Register to view this content.
Last edited by jindon; 04-01-2020 at 02:28 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks