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