Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Based upon the active cell, how can I type the word "ok" into column 3?
So basically, I need to determine the row the active cell is in, and then use that row and column 3 as the target for the "ok" text. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steph,
Are you trying to have "ok" automatically entered into a cell merely by landing (activating) a cell in Column 3. If so you would use an Event macro. http://www.mvps.org/dmcritchie/excel/event.htm If might be safer to use a doubleclick to trigger your event macro. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Steph" wrote... Based upon the active cell, how can I type the word "ok" into column 3? So basically, I need to determine the row the active cell is in, and then use that row and column 3 as the target for the "ok" text. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steph,
There are numerous ways to do this. First you need to determine WHEN you want this to happen. Do you want it to happen everytime you select a new row? If so use SelectionChange: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Cells(ActiveCell.Row, 3).Value = "OK" End Sub If you only want it to happen if you change a cell in that row then use Change: Private Sub Worksheet_Change(ByVal Target As Range) Cells(ActiveCell.Row, 3).Value = "OK" End Sub You can also use the BeforeDoubleClick worksheet event to do it when you double click a certain row. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Cells(ActiveCell.Row, 3).Value = "OK" End Sub Like I said, there are many ways to do this. Hope this helps. Mike "Steph" wrote: Based upon the active cell, how can I type the word "ok" into column 3? So basically, I need to determine the row the active cell is in, and then use that row and column 3 as the target for the "ok" text. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row select mode to highlight active row of active cell | Excel Discussion (Misc queries) | |||
set the background color of the current cell(active cell) | New Users to Excel | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. | Excel Discussion (Misc queries) | |||
Select First Active Cell if the cell is in a pivot table | Excel Programming |