View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Curt Curt is offline
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)