Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default Click = Random Charaters Into A Cell

Thanks,

is there a way to make this into such away that when i click the cell the
random password is inputted stright away? as i dont want to have to copy and
past the formula each time

regards,

chris



"Teethless mama" wrote:

=CHAR(RANDBETWEEN(CODE("A"),CODE("Z")))&CHAR(RANDB ETWEEN(CODE("A"),CODE("Z")))&CHAR(RANDBETWEEN(CODE ("a"),CODE("z")))&CHAR(RANDBETWEEN(CODE("a"),CODE( "z")))&CHAR(RANDBETWEEN(CODE("a"),CODE("z")))&CHAR (RANDBETWEEN(CODE("a"),CODE("z")))&CHAR(RANDBETWEE N(CODE("a"),CODE("z")))&RANDBETWEEN(1,9)

"Chris" wrote:

Hi All,

I used a spredsheet to create new users onto our network.
We input their name, job title, server and their password they will use to
login to windows.

Is it possible to make some random charaters appear by clicking on the
password cell? EG.

Name Job Function Password Server
John Smith CSR <CLICK Bristol

these passwords have to be in this Format: 2 Uppercase, 5 lower case, 1number.
i.e

UUlllll1

is this possible?

Regards,
Chris




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Click = Random Charaters Into A Cell

Chris,

Try this. Right click your sheet tab, view code and paste this in. It works
on Column C only and only if the cell is blank. The formula as supplied by
Teethless Mama has wrapped so you will have to unwrap it. Double click the
cell to get a number.


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Value = "" And ActiveCell.Column = 3 Then
Target.Formula =
"=CHAR(RANDBETWEEN(CODE(""A""),CODE(""Z"")))&CHAR( RANDBETWEEN(CODE(""A""),CODE(""Z"")))&CHAR(RANDBET WEEN(CODE(""a""),CODE(""z"")))&CHAR(RANDBETWEEN(CO DE(""a""),CODE(""z"")))&CHAR(RANDBETWEEN(CODE(""a" "),CODE(""z"")))&CHAR(RANDBETWEEN(CODE(""a""),CODE (""z"")))&CHAR(RANDBETWEEN(CODE(""a""),CODE(""z"") ))&RANDBETWEEN(1,9)"
Target.Copy
ActiveCell.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Target.Offset(1, 0).Select
End If
End Sub

Mike

"Chris" wrote:

Thanks,

is there a way to make this into such away that when i click the cell the
random password is inputted stright away? as i dont want to have to copy and
past the formula each time

regards,

chris



"Teethless mama" wrote:

=CHAR(RANDBETWEEN(CODE("A"),CODE("Z")))&CHAR(RANDB ETWEEN(CODE("A"),CODE("Z")))&CHAR(RANDBETWEEN(CODE ("a"),CODE("z")))&CHAR(RANDBETWEEN(CODE("a"),CODE( "z")))&CHAR(RANDBETWEEN(CODE("a"),CODE("z")))&CHAR (RANDBETWEEN(CODE("a"),CODE("z")))&CHAR(RANDBETWEE N(CODE("a"),CODE("z")))&RANDBETWEEN(1,9)

"Chris" wrote:

Hi All,

I used a spredsheet to create new users onto our network.
We input their name, job title, server and their password they will use to
login to windows.

Is it possible to make some random charaters appear by clicking on the
password cell? EG.

Name Job Function Password Server
John Smith CSR <CLICK Bristol

these passwords have to be in this Format: 2 Uppercase, 5 lower case, 1number.
i.e

UUlllll1

is this possible?

Regards,
Chris




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 do I remove non-numerical charaters from a string? Steve Excel Worksheet Functions 3 May 23rd 08 04:30 PM
Counting Charaters Coccoleggs Excel Worksheet Functions 8 September 21st 07 05:06 PM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Click on cell-calendar drops down-click on date-date fills cell. . George Setting up and Configuration of Excel 1 April 15th 05 08:22 AM


All times are GMT +1. The time now is 08:42 AM.

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"