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: 36
Default MsgBox & String 3

Thanks a lot to all that have helped me for you time and
expertise.

I now know how to use msgbox for debugging strings.

What I have found is that in the my code the sName string
does not work - using the following the msgbox show
nothing.

Dim sName As String, sDate As String

sName = (Left(Range("B1"), 4))
sDate = "" & Format(DateSerial(Year(Date), Month
(Date) - 1, 1), "mmm yy")

MsgBox sName & sDate

End Sub

= date only, no name

sName is suppose to get the first four letters in
cell "B1". Any Ideas why it does not do it.

Again, thanks for all of the help.
 
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
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
MsgBox String 2 Ronbo Excel Programming 4 August 31st 04 07:40 PM
MsgBox & String Ronbo Excel Programming 3 August 31st 04 07:11 PM
Can I create a msgbox that is asking for a string to be typed in? Phillips Excel Programming 2 November 20th 03 02:18 AM
Create a formula into a String then assign string to a cell Myrna Larson[_2_] Excel Programming 6 August 23rd 03 09:42 PM


All times are GMT +1. The time now is 05:50 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"