how to put calculation result in msgbox ?

siamandm
BronzeLounger
Posts: 1267
Joined: 01 May 2016, 09:58

how to put calculation result in msgbox ?

Post by siamandm »

Hi

i have this code which obviously don't work

Code: Select all

MsgBox "item selected =" +  Me.lstItm.ItemsSelected.Count", vbInformation, "Selected Items Upated !!"
is this possible? and how to fix this code

regards

User avatar
HansV
Administrator
Posts: 78620
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: how to put calculation result in msgbox ?

Post by HansV »

Try

MsgBox "Items selected =" & Me.lstItm.ItemsSelected.Count, vbInformation, "Selected Items Updated!"
Best wishes,
Hans

siamandm
BronzeLounger
Posts: 1267
Joined: 01 May 2016, 09:58

Re: how to put calculation result in msgbox ?

Post by siamandm »

yes that is it ... working as usual

thanks a lot