Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Row Number with Text

Michael
By "updated" I take that to mean the contents of a cell in Column A has
changed (not to blank though). Is that right?
And when that happens you want the row number and the letter D placed in the
15th column. Is that right?
The following macro will do that. Note that this macro must be placed in
the sheet module of your sheet. To access that module, right-click on the
sheet tab, select View Code, and paste this macro into that module. "X" out
of that module to return to your sheet. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If IsEmpty(Target.Value) Then Exit Sub
If Target.Column < 1 Then Exit Sub
Cells(Target.Row, 15).Value = Target.Row & "D"
End Sub
"Michael" wrote in message
...
Hi,

I have the following file layed out as:

Column1 Column2..... Column15
Admin 2D
Dispatch 3D
Fleet 4D

What I am trying to do is when column 1 is updated, then on column 15 add
the row for that cell, let's say cell A2, along with a character, in this
case the letter D.

How do I do that using VB?



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
Formula to change scientific number to regular number or text Compare Values Excel Discussion (Misc queries) 2 August 23rd 07 06:10 PM
How to tell textbox to treat number as number, not text, and notshow zero John Smith Excel Programming 1 November 16th 06 02:29 AM
Convert a number formatted as text to a number in a macro MACRE0[_5_] Excel Programming 2 October 22nd 05 02:51 AM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
Why does this fail? =TEXT(RC3,Number)&" / "&TEXT(R32C,Number) =TEXT(RC3,Number)& / &TEXT(R32C,Number Excel Worksheet Functions 2 June 23rd 05 01:02 AM


All times are GMT +1. The time now is 12:42 PM.

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"