Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Data Recording Officer Signing In

I have designed a welcome dialogue box for signing in requiring the data
recording officer to enter his name.

What macro should i assign to the sign in button so as to have the name of
the recording officer appear in Column D for every entry he makes in Column A?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Data Recording Officer Signing In

First enter this at the top of a standard module:

Public s As String
Sub Button3_Click()
s = Application.InputBox("Enter Name:", 2)
End Sub

Second, create a button with the forms toolbar and assign Button3_Click to it.

Third, open Worksheet code and enter:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Then
Exit Sub
End If
n = Target.Row
Cells(n, "D").Value = s
End Sub


When the button is punched, the name will be saved in the public string s.
Whenever an entry in made in column A, that name is entered in Column D in
the same row.
--
Gary's Student


"FARAZ QURESHI" wrote:

I have designed a welcome dialogue box for signing in requiring the data
recording officer to enter his name.

What macro should i assign to the sign in button so as to have the name of
the recording officer appear in Column D for every entry he makes in Column A?

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
Reconciliation of Data With Two Conditions Tiziano Excel Worksheet Functions 3 December 13th 06 02:36 AM
Vlookup to Return a Range of Data James Excel Discussion (Misc queries) 0 July 13th 06 09:44 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"