Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have excel sheet having 6 coulmns Col A - Names col B - Address col C - Date Col D - Login Col E - Any changes in login col F - Date of change in login If the user changes the login time in col E... automatically only that person's details will reflect in other sheet. I need macro to run this.. Is this possible ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Without knowing what the other sheet looks like it's hard to say. But, you could use a worksheet_change event or perhaps even just a simple VLOOKUP formula. -- Don Guillett Microsoft MVP Excel SalesAid Software "muddan madhu" wrote in message ... Hi, I have excel sheet having 6 coulmns Col A - Names col B - Address col C - Date Col D - Login Col E - Any changes in login col F - Date of change in login If the user changes the login time in col E... automatically only that person's details will reflect in other sheet. I need macro to run this.. Is this possible ? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "E:E" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target .offest(0, 1).Value = Now End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- __________________________________ HTH Bob "muddan madhu" wrote in message ... Hi, I have excel sheet having 6 coulmns Col A - Names col B - Address col C - Date Col D - Login Col E - Any changes in login col F - Date of change in login If the user changes the login time in col E... automatically only that person's details will reflect in other sheet. I need macro to run this.. Is this possible ? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Typo!
Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "E:E" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target .Offset(0, 1).Value = Now End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- __________________________________ HTH Bob "Bob Phillips" wrote in message ... Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "E:E" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target .offest(0, 1).Value = Now End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- __________________________________ HTH Bob "muddan madhu" wrote in message ... Hi, I have excel sheet having 6 coulmns Col A - Names col B - Address col C - Date Col D - Login Col E - Any changes in login col F - Date of change in login If the user changes the login time in col E... automatically only that person's details will reflect in other sheet. I need macro to run this.. Is this possible ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to copy and paste values (columns)I have a macro file built | Excel Programming | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |