Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Can someone please help me with the VB code to put an X or an asterisk in column A to indicate the activerow? I'm running Excel 2003 from work and cannot utilize any downloaded add-ons. I found several helpful posts instructing OP's how to highlight the entire row using VB, in my case I just need a distinct mark in column A. Thanks in advance, Ben |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi
not sure if i understand fully your request. what constitutes the activerow? the row with the cursor in it? Range("A" & Activecell.row).value = "X" this will put an X in column A of the row the cursor in it. Regards FSt1 "Ben" wrote: Hi, Can someone please help me with the VB code to put an X or an asterisk in column A to indicate the activerow? I'm running Excel 2003 from work and cannot utilize any downloaded add-ons. I found several helpful posts instructing OP's how to highlight the entire row using VB, in my case I just need a distinct mark in column A. Thanks in advance, Ben |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the rapid response FSt1. You did understand my request but I have
a problem with your solution, hopefully you can help. I added the following to your code and added it as a Worksheet Event: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A" & ActiveCell.row).Value = "*" End Sub The "X" appears in column A but doesn't disappear when I click on a new row (in other words if I click up and down my worksheet, I paint X's in every row of column A). Can you please help me to make them disappear when I click on a new row (and appear on the new row)? Thanks again, Ben "FSt1" wrote: hi not sure if i understand fully your request. what constitutes the activerow? the row with the cursor in it? Range("A" & Activecell.row).value = "X" this will put an X in column A of the row the cursor in it. Regards FSt1 "Ben" wrote: Hi, Can someone please help me with the VB code to put an X or an asterisk in column A to indicate the activerow? I'm running Excel 2003 from work and cannot utilize any downloaded add-ons. I found several helpful posts instructing OP's how to highlight the entire row using VB, in my case I just need a distinct mark in column A. Thanks in advance, Ben |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
is column a empty except for the *?? if so then.... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A:A").ClearContents Range("A" & ActiveCell.Row).Value = "*" End Sub regards FSt1 "Ben" wrote: Thanks for the rapid response FSt1. You did understand my request but I have a problem with your solution, hopefully you can help. I added the following to your code and added it as a Worksheet Event: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A" & ActiveCell.row).Value = "*" End Sub The "X" appears in column A but doesn't disappear when I click on a new row (in other words if I click up and down my worksheet, I paint X's in every row of column A). Can you please help me to make them disappear when I click on a new row (and appear on the new row)? Thanks again, Ben "FSt1" wrote: hi not sure if i understand fully your request. what constitutes the activerow? the row with the cursor in it? Range("A" & Activecell.row).value = "X" this will put an X in column A of the row the cursor in it. Regards FSt1 "Ben" wrote: Hi, Can someone please help me with the VB code to put an X or an asterisk in column A to indicate the activerow? I'm running Excel 2003 from work and cannot utilize any downloaded add-ons. I found several helpful posts instructing OP's how to highlight the entire row using VB, in my case I just need a distinct mark in column A. Thanks in advance, Ben |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Works perfectly, thanks for the help!
"FSt1" wrote: hi, is column a empty except for the *?? if so then.... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A:A").ClearContents Range("A" & ActiveCell.Row).Value = "*" End Sub regards FSt1 "Ben" wrote: Thanks for the rapid response FSt1. You did understand my request but I have a problem with your solution, hopefully you can help. I added the following to your code and added it as a Worksheet Event: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A" & ActiveCell.row).Value = "*" End Sub The "X" appears in column A but doesn't disappear when I click on a new row (in other words if I click up and down my worksheet, I paint X's in every row of column A). Can you please help me to make them disappear when I click on a new row (and appear on the new row)? Thanks again, Ben "FSt1" wrote: hi not sure if i understand fully your request. what constitutes the activerow? the row with the cursor in it? Range("A" & Activecell.row).value = "X" this will put an X in column A of the row the cursor in it. Regards FSt1 "Ben" wrote: Hi, Can someone please help me with the VB code to put an X or an asterisk in column A to indicate the activerow? I'm running Excel 2003 from work and cannot utilize any downloaded add-ons. I found several helpful posts instructing OP's how to highlight the entire row using VB, in my case I just need a distinct mark in column A. Thanks in advance, Ben |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I add active tick mark/check mark boxes in excel? | Excel Discussion (Misc queries) | |||
Conditional Formatting Based on Question Mark (*NOT* used aswildcard) | Excel Worksheet Functions | |||
Excel 2007 Broken Links - Box With a Question Mark on the Inside | Links and Linking in Excel | |||
How do I set up a column in Excel as a check mark column? | Excel Discussion (Misc queries) | |||
How do I find and replace a question mark in Excel? | Excel Discussion (Misc queries) |