![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Mar 2002
Location: Chennai, India
Posts: 99
|
I have a spreadsheet that contains the following data of the about 150 people:
User Id Password Full Name Telephone But I want to format the password column in the usual ( " ***** ") style. I tried using the custom formatting as ["*"](#####), which MS-Excel would not allow me. Any help??? _________________ Here is a follow-up: I tried putting * "****" in the custom formating. This shows the password as ***** in the cell but the formula bar betrays you. [ This Message was edited by: srinivas14 on 2002-03-27 22:59 ] |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi srinivas14
The only way you can get around this is to have these cells have their "Hidden" Property set (Format>cell-Protection) and then protect the sheet. You would then keep the Custom format you have and enter each password as a formula, eg ="MyPassword" |
|
|
|
|
|
#3 |
|
Join Date: Mar 2002
Location: Chennai, India
Posts: 99
|
Thanks for the help, Boss.
But that leads to another problem. When protected (for only contents, say), I will not be able to adjust column widths or format text (Bold, color, etc). |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
I thought that might be a problem. The only other option is some VBA. Right click on the sheet name tab and select "View Code" and paste in this:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Range("A1") = "Edit" Then End If Target.Column = 5 Then Target.Offset(0, -1).Select End Sub End Sub This will prevent any cells in Column "E" from being selected but only if the word "Edit" is NOT in cell A1. _________________ Kind Regards Dave Hawley OzGrid Business Applications Microsoft Excel/VBA Training ![]() [ This Message was edited by: Dave Hawley on 2002-03-27 23:28 ] |
|
|
|
|
|
#5 |
|
Join Date: Mar 2002
Location: Chennai, India
Posts: 99
|
Thanks Dave.
A clever trick, I should say.... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|