Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default msgbox text vbyesno

Have following and can not seem to get it to work. tried ifs etc same as
others noluck. Want to show cell amount then have a vbyesno for user to
answer. If cel text length to long yes do this no exit. Heres what Ive tried
theamount msgbox is the hang up
Any one Thanks

Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
msgbox (cellLength)
theamount = msgbox("cellLength", prompt:="Is the Number over 232", _
Buttons:=vbYesNo)



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default msgbox text vbyesno

hi,
inclose the msgbox in an if statement.
if msgbox(celllength & vbNewLine & "Is the Number over 232", _
vbYesNo) = vbYes Then
do something
Else
Exit Sub
end if

regards
FSt1
"Curt" wrote:

Have following and can not seem to get it to work. tried ifs etc same as
others noluck. Want to show cell amount then have a vbyesno for user to
answer. If cel text length to long yes do this no exit. Heres what Ive tried
theamount msgbox is the hang up
Any one Thanks

Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
msgbox (cellLength)
theamount = msgbox("cellLength", prompt:="Is the Number over 232", _
Buttons:=vbYesNo)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default msgbox text vbyesno

download mztools. one of the options is the msgbox assistant. it should help you
out.

http://www.mztools.com/v3/mztools3.htm

--


Gary


"Curt" wrote in message
...
Have following and can not seem to get it to work. tried ifs etc same as
others noluck. Want to show cell amount then have a vbyesno for user to
answer. If cel text length to long yes do this no exit. Heres what Ive tried
theamount msgbox is the hang up
Any one Thanks

Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
msgbox (cellLength)
theamount = msgbox("cellLength", prompt:="Is the Number over 232", _
Buttons:=vbYesNo)





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default msgbox text vbyesno

Thanks for pulling my brain dead head out. This is first time I've used cell
length never seen the & vbnewline befor
Thanks much Mate

"FSt1" wrote:

hi,
inclose the msgbox in an if statement.
if msgbox(celllength & vbNewLine & "Is the Number over 232", _
vbYesNo) = vbYes Then
do something
Else
Exit Sub
end if

regards
FSt1
"Curt" wrote:

Have following and can not seem to get it to work. tried ifs etc same as
others noluck. Want to show cell amount then have a vbyesno for user to
answer. If cel text length to long yes do this no exit. Heres what Ive tried
theamount msgbox is the hang up
Any one Thanks

Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
msgbox (cellLength)
theamount = msgbox("cellLength", prompt:="Is the Number over 232", _
Buttons:=vbYesNo)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default msgbox text vbyesno

Thank You did download will see what I can do
Thanks Again

"Gary Keramidas" wrote:

download mztools. one of the options is the msgbox assistant. it should help you
out.

http://www.mztools.com/v3/mztools3.htm

--


Gary


"Curt" wrote in message
...
Have following and can not seem to get it to work. tried ifs etc same as
others noluck. Want to show cell amount then have a vbyesno for user to
answer. If cel text length to long yes do this no exit. Heres what Ive tried
theamount msgbox is the hang up
Any one Thanks

Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
msgbox (cellLength)
theamount = msgbox("cellLength", prompt:="Is the Number over 232", _
Buttons:=vbYesNo)






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
vbYesNo message box Big Mac Excel Programming 5 May 9th 06 02:42 PM
VbYesNo MsgBox won't respond to "No" Peter Rooney Excel Programming 4 December 22nd 05 04:01 PM
VBYesNo MsgBox - Computer always says "Yes" Peter Rooney Excel Discussion (Misc queries) 4 December 22nd 05 02:42 PM
VbYesNo Msg Box mjack003 Excel Discussion (Misc queries) 1 September 22nd 05 03:09 AM
vbYesNo mike allen Excel Programming 1 January 4th 04 03:59 PM


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