Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - User form caption problem

Hello All,

I've got a multi page which contains several chkboxs on. When a use
clicks the submit button, the code will loop through the check box's
find out which ones have been checked and then populate a range wit
the caption of the checked box's.

Works greated, except for when it comes to a certain set of captions
All of the captions are in the form of 03A01, 03B02, etc.

However when it get's to 03E01 & 03E02 it the populated cells rea
3.00E+01 (& 02 respectivly). When I look at the "format cell" on th
actual worksheet it lists it as "scientific" instead of general as th
rest are. I've tried changing the formating back to general but when
run the form it changes back again.

Is "03E" a reserved notation or something?

It works fine with 03F, etc. just 03E doesn't work.

Sorry for the long post, just trying to give as much info. a
possible.

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel VBA - User form caption problem

Excel uses 'E' to indicate scientific notation, so 3E02 is
interpreted as shorthand for 3*10^2, which Excel displays as
3.00E+01. Format the cell as Text prior to writing the value to
the cell, or include an apostrophe in front of the number.


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


"xlnoobie " wrote in
message ...
Hello All,

I've got a multi page which contains several chkboxs on. When a

user
clicks the submit button, the code will loop through the check

box's,
find out which ones have been checked and then populate a range

with
the caption of the checked box's.

Works greated, except for when it comes to a certain set of

captions.
All of the captions are in the form of 03A01, 03B02, etc.

However when it get's to 03E01 & 03E02 it the populated cells

read
3.00E+01 (& 02 respectivly). When I look at the "format cell"

on the
actual worksheet it lists it as "scientific" instead of general

as the
rest are. I've tried changing the formating back to general but

when I
run the form it changes back again.

Is "03E" a reserved notation or something?

It works fine with 03F, etc. just 03E doesn't work.

Sorry for the long post, just trying to give as much info. as
possible.

Thanks.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - User form caption problem

Thanks Chip,

I went a head and formatted the cells to "text" and it worked like
charm. Thanks for the lesson as well.

I just found this forum last night, and think it great!

--
Message posted from http://www.ExcelForum.com

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
User Form Problem ??? mully New Users to Excel 5 July 2nd 08 11:53 AM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 2 December 30th 05 03:42 PM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 0 December 29th 05 11:04 PM
Excel User Form problem humet Excel Programming 5 December 11th 03 09:37 PM
problem with user form chris[_3_] Excel Programming 1 July 15th 03 03:40 AM


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