Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Mark active row in column A (VB question)

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Mark active row in column A (VB question)

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   Report Post  
Posted to microsoft.public.excel.misc
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Mark active row in column A (VB question)

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Mark active row in column A (VB question)

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   Report Post  
Posted to microsoft.public.excel.misc
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Mark active row in column A (VB question)

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
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
How can I add active tick mark/check mark boxes in excel? gerberelli Excel Discussion (Misc queries) 2 May 3rd 08 05:16 PM
Conditional Formatting Based on Question Mark (*NOT* used aswildcard) [email protected] Excel Worksheet Functions 8 December 6th 07 02:56 AM
Excel 2007 Broken Links - Box With a Question Mark on the Inside [email protected] Links and Linking in Excel 0 June 8th 07 01:33 AM
How do I set up a column in Excel as a check mark column? wrsstevens Excel Discussion (Misc queries) 7 April 10th 07 07:12 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM


All times are GMT +1. The time now is 04:28 PM.

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

About Us

"It's about Microsoft Excel"