ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Restricting Cell Format (https://www.excelbanter.com/excel-discussion-misc-queries/42640-restricting-cell-format.html)

zhj23

Restricting Cell Format
 
Is there a way to restrict a cell to a certain format, such that the user
cannot input other formats other than the preset one?
For example: preset the cell to numeric, user cannot input text or dates.

Many thanks.

Bob Phillips

Data Validation can do that to an extent. It can restrict to a number, no
text, but dates are just numbers, so that is a problem. See
www.contextures.com/xlDataVal01.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zhj23" wrote in message
...
Is there a way to restrict a cell to a certain format, such that the user
cannot input other formats other than the preset one?
For example: preset the cell to numeric, user cannot input text or dates.

Many thanks.




zhj23

Thank you, Sir.

At least the problem can be partially solved.


"Bob Phillips" wrote:

Data Validation can do that to an extent. It can restrict to a number, no
text, but dates are just numbers, so that is a problem. See
www.contextures.com/xlDataVal01.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zhj23" wrote in message
...
Is there a way to restrict a cell to a certain format, such that the user
cannot input other formats other than the preset one?
For example: preset the cell to numeric, user cannot input text or dates.

Many thanks.





Bob Phillips

The other way is event code to trap it as entered.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zhj23" wrote in message
...
Thank you, Sir.

At least the problem can be partially solved.


"Bob Phillips" wrote:

Data Validation can do that to an extent. It can restrict to a number,

no
text, but dates are just numbers, so that is a problem. See
www.contextures.com/xlDataVal01.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zhj23" wrote in message
...
Is there a way to restrict a cell to a certain format, such that the

user
cannot input other formats other than the preset one?
For example: preset the cell to numeric, user cannot input text or

dates.

Many thanks.








All times are GMT +1. The time now is 08:09 PM.

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