Right click sheet tab>view code>insert this. Now when you put 149 in col A col B will populate

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 2 Or Target.Column <> 1 Then Exit Sub
Target.Offset(, 1) = "#" & Target & " Story"
End Sub

-----Original Message----- From: deej109
Sent: Monday, August 08, 2011 1:37 PM
To: MS EXCEL AND VBA MACROS
Subject: $$Excel-Macros$$ populate consecutive numbers in discrete rows with other text

I have two adjacent columns of consecutive numbers, spaced several
rows apart each.  For example:

 A          B
149 | #149 Story


150 | #150 Story


I know how to create consecutive numbers in column A.  Is there a way
to automatically populate the numbers in column B?  Is there a way to
combine text and function commands?

Thanks very much!
deej109

--
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel
--
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to