LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Wrong text in msgbox

I run a routine to (among other things) delete certain cells. Tom Ogilvy
gave me code which is supposed to collect the values of the deleted cells in
the string "strTIR" (Dim'd at the beginning of the code) and display them in
a message box. The message box popped up this morning showing me "strTIR",
instead of the collected cell values! This make me think that, just
possibly, I may(?!?) have screwed up Tom's code. I have included the
pertinant parts of the code below. Any kicks in the proper direction are
appreciated.



Ed



' Runs routine to delete all file paths with ERROR msg

Range("AM1").Select

Selection.End(xlDown).Select



Do While ActiveCell.Value < "Header"

If ActiveCell.Value = "" Then

ActiveCell.Offset(rowOffset:=-1, columnOffset:=0).Activate

Else: rngR = ActiveCell.Row

Range("AB" & rngR).Select



' add TIR No to string

strTIR = strTIR & ActiveCell.Value & vbNewLine



Selection.Delete Shift:=xlUp

Range("AM" & rngR).Select

ActiveCell.Offset(rowOffset:=-1, columnOffset:=0).Activate

End If

Loop



' Display TIRs deleted

MsgBox "Deleted TIRs:" & Chr(13) & "strTIR"


 
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
Bold Text In Msgbox FARAZ QURESHI Excel Discussion (Misc queries) 2 April 10th 09 08:26 AM
MsgBox text on several lines mohavv Excel Discussion (Misc queries) 1 November 21st 07 08:17 PM
Can text in ListBox and MsgBox be high lighted? Pank New Users to Excel 3 April 24th 07 12:16 AM
How to Bold text in MsgBox? [email protected] Excel Discussion (Misc queries) 1 July 29th 06 04:24 AM
How to center text in a msgbox Dave_2k5 Excel Discussion (Misc queries) 2 July 26th 05 01:20 PM


All times are GMT +1. The time now is 03:07 AM.

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"