Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default How to avoid excel automatically detect the cells formatl???

Hi, I have a problem, the day date is in cell c3; and in all the other cells
the format is the general format, if my user makes a mistake and put the date
in some other cell that isnt c3 the format of that cell is changed to date
format, and all the numbers are wrong because so, There is somehow I can tell
excel not to detect automatically the format of the cells so if the user put
23/09/05 and then he erase this data and put 345 the cell didnt show
10/12/1900?????
TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default How to avoid excel automatically detect the cells formatl???

That is the problem with general. It is roughly the equivalent of of
declaring a variable as variant. Once the cell is initialized as being of a
specific format then it will remain that way unless something changes. Why
not use the on change event to reformat the cell the way you want it based on
validation of the cell contents. The problem you have is 345 is a perfectly
valid date. You can use validation to say that that is not a valid date so
format it as numeric.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Hi, I have a problem, the day date is in cell c3; and in all the other cells
the format is the general format, if my user makes a mistake and put the date
in some other cell that isnt c3 the format of that cell is changed to date
format, and all the numbers are wrong because so, There is somehow I can tell
excel not to detect automatically the format of the cells so if the user put
23/09/05 and then he erase this data and put 345 the cell didnt show
10/12/1900?????
TIA


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default How to avoid excel automatically detect the cells formatl???

Thanks Jim, good suggestion.
Could you tell me whom to ask some questions that I have and that nobody
could answerme in the disscutions group????

"Jim Thomlinson" wrote:

That is the problem with general. It is roughly the equivalent of of
declaring a variable as variant. Once the cell is initialized as being of a
specific format then it will remain that way unless something changes. Why
not use the on change event to reformat the cell the way you want it based on
validation of the cell contents. The problem you have is 345 is a perfectly
valid date. You can use validation to say that that is not a valid date so
format it as numeric.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Hi, I have a problem, the day date is in cell c3; and in all the other cells
the format is the general format, if my user makes a mistake and put the date
in some other cell that isnt c3 the format of that cell is changed to date
format, and all the numbers are wrong because so, There is somehow I can tell
excel not to detect automatically the format of the cells so if the user put
23/09/05 and then he erase this data and put 345 the cell didnt show
10/12/1900?????
TIA


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default How to avoid excel automatically detect the cells formatl???

I have never found a better forum than this. The majority of questions that
go unanswered normally

1. deal with a subject that is not strictly Excel
2. are not specific. The question is a project not a specific piece of a
project.
3. To much to answer in one go. Three or four questions all asked at once.
One or two will be answered but not all.
4. To large in scope to deal with on a forum like this.

Ask a question that is one well defined specific Excel question and for the
most part you will get a response. Most of your questions (that I have seen)
have been of that format and have been answered. Repost what was missed and
we can take another stab at them.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Thanks Jim, good suggestion.
Could you tell me whom to ask some questions that I have and that nobody
could answerme in the disscutions group????

"Jim Thomlinson" wrote:

That is the problem with general. It is roughly the equivalent of of
declaring a variable as variant. Once the cell is initialized as being of a
specific format then it will remain that way unless something changes. Why
not use the on change event to reformat the cell the way you want it based on
validation of the cell contents. The problem you have is 345 is a perfectly
valid date. You can use validation to say that that is not a valid date so
format it as numeric.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Hi, I have a problem, the day date is in cell c3; and in all the other cells
the format is the general format, if my user makes a mistake and put the date
in some other cell that isnt c3 the format of that cell is changed to date
format, and all the numbers are wrong because so, There is somehow I can tell
excel not to detect automatically the format of the cells so if the user put
23/09/05 and then he erase this data and put 345 the cell didnt show
10/12/1900?????
TIA


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default How to avoid excel automatically detect the cells formatl???

tanks, I will do it

"Jim Thomlinson" wrote:

I have never found a better forum than this. The majority of questions that
go unanswered normally

1. deal with a subject that is not strictly Excel
2. are not specific. The question is a project not a specific piece of a
project.
3. To much to answer in one go. Three or four questions all asked at once.
One or two will be answered but not all.
4. To large in scope to deal with on a forum like this.

Ask a question that is one well defined specific Excel question and for the
most part you will get a response. Most of your questions (that I have seen)
have been of that format and have been answered. Repost what was missed and
we can take another stab at them.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Thanks Jim, good suggestion.
Could you tell me whom to ask some questions that I have and that nobody
could answerme in the disscutions group????

"Jim Thomlinson" wrote:

That is the problem with general. It is roughly the equivalent of of
declaring a variable as variant. Once the cell is initialized as being of a
specific format then it will remain that way unless something changes. Why
not use the on change event to reformat the cell the way you want it based on
validation of the cell contents. The problem you have is 345 is a perfectly
valid date. You can use validation to say that that is not a valid date so
format it as numeric.
--
HTH...

Jim Thomlinson


"filo666" wrote:

Hi, I have a problem, the day date is in cell c3; and in all the other cells
the format is the general format, if my user makes a mistake and put the date
in some other cell that isnt c3 the format of that cell is changed to date
format, and all the numbers are wrong because so, There is somehow I can tell
excel not to detect automatically the format of the cells so if the user put
23/09/05 and then he erase this data and put 345 the cell didnt show
10/12/1900?????
TIA


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
How to automatically make excel detect directory path for linked f rushdhih Excel Discussion (Misc queries) 2 February 20th 09 10:41 AM
How do I make a formula automatically detect changes in values LMoore Excel Worksheet Functions 1 March 28th 07 04:44 PM
Excel truncated my cells when copying, how to avoid?? bxc2739 Excel Discussion (Misc queries) 0 March 17th 06 04:40 PM
Pie Charts Resize Automatically - How To Avoid? John Mansfield Charts and Charting in Excel 0 May 11th 05 08:12 PM
How Do I Automatically Detect Cell Changes In Excel Gordon[_11_] Excel Programming 4 January 13th 04 01:38 PM


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