Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Auto fill Row Numbers in Col A

Is there a simple macro to add a row number in col A if there is text in Col
B. I've searched this site but haven't found anything similar? Thanks for
your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Auto fill Row Numbers in Col A

right click sheet tabview codecopy/paste this
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 2 Then Exit Sub
Target.Offset(, -1) = Target.Row

End Sub

--
Don Guillett
SalesAid Software

"SITCFanTN" wrote in message
...
Is there a simple macro to add a row number in col A if there is text in
Col
B. I've searched this site but haven't found anything similar? Thanks
for
your help.



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
Auto-fill numbers in groups of 4 vtrud Excel Discussion (Misc queries) 9 September 25th 09 09:23 PM
Auto fill numbers and text karchivese Excel Discussion (Misc queries) 1 January 25th 08 07:23 PM
Auto fill numbers starting with zero pianogirlny Excel Discussion (Misc queries) 3 December 31st 07 03:15 PM
I Need a Formula to Auto-fill Phone Numbers in a Range twd3lr Excel Worksheet Functions 4 February 4th 05 08:38 PM
How do I get auto fill to do decending numbers in a column? oesqueen Excel Discussion (Misc queries) 2 January 26th 05 02:55 PM


All times are GMT +1. The time now is 08:37 AM.

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

About Us

"It's about Microsoft Excel"