I can't seem to get a simple line of code to work.
lblTotalPts.Caption = CStr(x)
This is a powerpoint label and x is an accumulator. X is declared as Long. X is holding the correct value when I hover but won't cast to a string.
thanks.
You access the properties of ActiveX shapes a bit differently than normal PPT shapes.
Change this:
lblTotalPts.Caption = CStr(x)
To this:
lblTotalPts.OLEFormat.Object.Caption = CStr(x)
CStr(x)(see here) is how one would convertxto aStringso it's unclear what the issue is.Label1.Caption = x? Why are you converting it to a string?