Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone, I'm new to qlikview and VBA macro.
I have an issue with VBA macro on my qvw.
Using macro, I would like to
Now I can get the text but can't show the message. It seems the macro doesn't work.
Sub Check
msg = "not selected"
set i = ActiveDocument.GetSheetObject("TX01").text
if i="0" then
MsgBox(msg)
end if
end Sub
I would make some mistakes on my expression, please help me.
Thank you for your support.
try this:
Sub Check
msg = "not selected"
set mytextbox = ActiveDocument.GetSheetObject("TX01")
i = mytextbox.getText
if i="0" then
MsgBox(msg)
else Msgbox(i)
end if
end Sub
try this:
Sub Check
msg = "not selected"
set mytextbox = ActiveDocument.GetSheetObject("TX01")
i = mytextbox.getText
if i="0" then
MsgBox(msg)
else Msgbox(i)
end if
end Sub
set i = ActiveDocument.GetSheetObject("TX01")