PC Review


Reply
Thread Tools Rate Thread

Change the format as data is entered

 
 
Niju David
Guest
Posts: n/a
 
      22nd Jun 2008
How can i enter data in excel in such a way that as I enter the format will
be changed.
For eg: when i enter 12345 the format should change to *****. This should
happen as I enter data and not after I enter data and hit enter
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      22nd Jun 2008
Two ways:

1. use a macro. See OnKey in Excel VBA help

2. use a userform
--
Gary''s Student - gsnu200793


"Niju David" wrote:

> How can i enter data in excel in such a way that as I enter the format will
> be changed.
> For eg: when i enter 12345 the format should change to *****. This should
> happen as I enter data and not after I enter data and hit enter

 
Reply With Quote
 
Niju David
Guest
Posts: n/a
 
      22nd Jun 2008
Could you please elaborate on this

"Gary''s Student" wrote:

> Two ways:
>
> 1. use a macro. See OnKey in Excel VBA help
>
> 2. use a userform
> --
> Gary''s Student - gsnu200793
>
>
> "Niju David" wrote:
>
> > How can i enter data in excel in such a way that as I enter the format will
> > be changed.
> > For eg: when i enter 12345 the format should change to *****. This should
> > happen as I enter data and not after I enter data and hit enter

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Jun 2008
Excel doesn't support anything like this when you're entering data into a cell.

But you could design a userform with a textbox and use the passwordchar property
to hide the value as it's being entered.

Niju David wrote:
>
> How can i enter data in excel in such a way that as I enter the format will
> be changed.
> For eg: when i enter 12345 the format should change to *****. This should
> happen as I enter data and not after I enter data and hit enter


--

Dave Peterson
 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      22nd Jun 2008
> Excel doesn't support anything like this when you're entering data into a
> cell.


Just to add to Dave's statement...

Even if you could set up a format to mask the display in the cell, the true
value would always be displayed in the formula bar... that is just the way
Excel works. Accepting passwords (what I think you [the OP] are asking for)
is not something a worksheet was designed to do. The suggestion to use a
UserForm is the way to go.

Rick

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need data entered to reflect hh:mm format Peter Microsoft Excel Misc 3 2nd Dec 2009 11:31 PM
Visual to copy format one row down when data entered Jeremy Microsoft Excel Misc 1 5th Nov 2009 04:20 PM
how to change format of data already entered Beth A Microsoft Access Queries 5 24th Sep 2009 02:01 PM
how to change format of several dates entered in an Excel column =?Utf-8?B?aWx5YXo=?= Microsoft Excel New Users 2 1st Aug 2006 05:34 AM
Re: Format data entered with User Form Candee Microsoft Excel Programming 0 13th Sep 2004 06:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 PM.