Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a worksheet that keeps the active cell shaded as the cell moves down
the column. This was done awhile back, but I can't remember how it was done. The active cell only moves down a column, not across the rows. Once data has been entered into the cell and the enter key is hit, the next row's cell is now active and shaded. Can anyone help me? (A2 is active and shaded. Data is entered into A2 and the enter key hit. A3 is now active and shaded. A2 now has no shading.) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
right click sheet tabview codecopy/paste thissave
now the active cell will be hightlighted while not disturbing other formatting 'McCurdy.Here is something inspired by Don Guillett. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim MyRng As Range Set MyRng = Target '.EntireRow Application.EnableEvents = False On Error GoTo end1 Application.Cells.FormatConditions.Delete 'Application.Cells.Font.Size = 10 With MyRng .FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ROW()=ROW(INDIRECT(CELL(""address"")))" With .FormatConditions(1).Font .Bold = True .Italic = False .ColorIndex = 1 End With '.Font.Size = 20 .FormatConditions(1).Interior.ColorIndex = 36 End With end1: Application.EnableEvents = True End Sub -- Don Guillett SalesAid Software " wrote in message ... I have a worksheet that keeps the active cell shaded as the cell moves down the column. This was done awhile back, but I can't remember how it was done. The active cell only moves down a column, not across the rows. Once data has been entered into the cell and the enter key is hit, the next row's cell is now active and shaded. Can anyone help me? (A2 is active and shaded. Data is entered into A2 and the enter key hit. A3 is now active and shaded. A2 now has no shading.) |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Don, I'll give it a shot.
"Don Guillett" wrote: right click sheet tabview codecopy/paste thissave now the active cell will be hightlighted while not disturbing other formatting 'McCurdy.Here is something inspired by Don Guillett. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim MyRng As Range Set MyRng = Target '.EntireRow Application.EnableEvents = False On Error GoTo end1 Application.Cells.FormatConditions.Delete 'Application.Cells.Font.Size = 10 With MyRng .FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ROW()=ROW(INDIRECT(CELL(""address"")))" With .FormatConditions(1).Font .Bold = True .Italic = False .ColorIndex = 1 End With '.Font.Size = 20 .FormatConditions(1).Interior.ColorIndex = 36 End With end1: Application.EnableEvents = True End Sub -- Don Guillett SalesAid Software " wrote in message ... I have a worksheet that keeps the active cell shaded as the cell moves down the column. This was done awhile back, but I can't remember how it was done. The active cell only moves down a column, not across the rows. Once data has been entered into the cell and the enter key is hit, the next row's cell is now active and shaded. Can anyone help me? (A2 is active and shaded. Data is entered into A2 and the enter key hit. A3 is now active and shaded. A2 now has no shading.) |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Don, the below coding worked. However, I should have been more
specific. I am entering data into the spreadsheet in multiple columns. I would like the next available cell to be shaded (easy to be spotted) that the data needs to be entered. For example, Columns C, F,I, and L are my columns for entering data. The last row that data was entered was row 5. I want the cells only (C6, F6, I6 and L6) to be shaded. Once data has been entered in row 6, now row 7 cells will be shaded and so on. Row 6 cells will return to previous cell shading and no formatting will be affected. I this was more specific and you can help with this problem. "Don Guillett" wrote: right click sheet tabview codecopy/paste thissave now the active cell will be hightlighted while not disturbing other formatting 'McCurdy.Here is something inspired by Don Guillett. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim MyRng As Range Set MyRng = Target '.EntireRow Application.EnableEvents = False On Error GoTo end1 Application.Cells.FormatConditions.Delete 'Application.Cells.Font.Size = 10 With MyRng .FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ROW()=ROW(INDIRECT(CELL(""address"")))" With .FormatConditions(1).Font .Bold = True .Italic = False .ColorIndex = 1 End With '.Font.Size = 20 .FormatConditions(1).Interior.ColorIndex = 36 End With end1: Application.EnableEvents = True End Sub -- Don Guillett SalesAid Software " wrote in message ... I have a worksheet that keeps the active cell shaded as the cell moves down the column. This was done awhile back, but I can't remember how it was done. The active cell only moves down a column, not across the rows. Once data has been entered into the cell and the enter key is hit, the next row's cell is now active and shaded. Can anyone help me? (A2 is active and shaded. Data is entered into A2 and the enter key hit. A3 is now active and shaded. A2 now has no shading.) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell References | Excel Discussion (Misc queries) | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Selection starting from active cell | Excel Discussion (Misc queries) | |||
Possible Lookup Table | Excel Worksheet Functions | |||
Unable to set the active cell from VBA | New Users to Excel |