PC Review


Reply
Thread Tools Rate Thread

change contents of cell to another cell's value via macro or??

 
 
=?Utf-8?B?RGF2ZSBMYWdlcmdyZW4=?=
Guest
Posts: n/a
 
      17th Jul 2007
I have a spread sheet that has one page with all our users, user names and
passwords. Another sheet has a random password generator. I would like to
be able to change the password for any user by using a macro or a button. I
can do it for all at once but I don't need/want to do that. My password is
store in sheet2 cell A1.

--
Dave Lagergren
Manager - Data Applications
Wireless Management, Inc
Specializing in cellular wireless applications
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      18th Jul 2007
Based on what you described:

Sub pswdchng()
Dim newPswd As String
newPswd = InputBox("Enter New Password.", "CHANGE PASSWORD")
confrmPw = InputBox("Confirm Change by Re-entering New _
Password.", "CONFIRM CHANGE")
If newPswd = confrmPw Then
Worksheets(2).Range("A1") = newPswd
Else
MsgBox "New Password Mismatch, Change Aborted."
End If
End Sub

"Dave Lagergren" wrote:

> I have a spread sheet that has one page with all our users, user names and
> passwords. Another sheet has a random password generator. I would like to
> be able to change the password for any user by using a macro or a button. I
> can do it for all at once but I don't need/want to do that. My password is
> store in sheet2 cell A1.
>
> --
> Dave Lagergren
> Manager - Data Applications
> Wireless Management, Inc
> Specializing in cellular wireless applications

 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBMYWdlcmdyZW4=?=
Guest
Posts: n/a
 
      18th Jul 2007
Thank you for your response. I probably didn't make myself clear. I have a
worksheet (Sheet2) that will generate a random password and store it in cell
A1 whenever I recalculate the spreadsheet. On Sheet1 I have my employees
listed with user name, etc. I want to be able to use a button to change a
password to the contents of Sheet2 A1. This needs to be done on only one
employee at a time and the rest can't change.

I would envision one of two options: either a separate button for each
employee or a checkbox for each employee and a master button to change
passwords for all selected.

So far I can change all passwords at once but they all change to the same
password - hardly desireable.

--
Dave Lagergren
Manager - Data Applications
Wireless Management, Inc
Specializing in cellular wireless applications


"JLGWhiz" wrote:

> Based on what you described:
>
> Sub pswdchng()
> Dim newPswd As String
> newPswd = InputBox("Enter New Password.", "CHANGE PASSWORD")
> confrmPw = InputBox("Confirm Change by Re-entering New _
> Password.", "CONFIRM CHANGE")
> If newPswd = confrmPw Then
> Worksheets(2).Range("A1") = newPswd
> Else
> MsgBox "New Password Mismatch, Change Aborted."
> End If
> End Sub
>
> "Dave Lagergren" wrote:
>
> > I have a spread sheet that has one page with all our users, user names and
> > passwords. Another sheet has a random password generator. I would like to
> > be able to change the password for any user by using a macro or a button. I
> > can do it for all at once but I don't need/want to do that. My password is
> > store in sheet2 cell A1.
> >
> > --
> > Dave Lagergren
> > Manager - Data Applications
> > Wireless Management, Inc
> > Specializing in cellular wireless applications

 
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
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Microsoft Excel Worksheet Functions 6 20th Dec 2008 05:02 PM
Please help! Macro to change cell contents based on cell to the left Jennifer Microsoft Excel Programming 7 4th Mar 2004 01:06 AM
Can I automatically start a macro if the contents of a particular cell change markshowell Microsoft Excel Programming 1 2nd Mar 2004 07:29 PM
Run macro when cell contents change Tim Smith Microsoft Excel Programming 3 27th Sep 2003 06:44 PM
Re: Run macro when cell contents change Bob Phillips Microsoft Excel Programming 0 27th Sep 2003 12:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:46 PM.