msgbox text vbyesno

C

Curt

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)
 
F

FSt1

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
 
C

Curt

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top