Hi all .I have difficulty outputing the value of shell function into massagebox using task_id variable. Currently the shell function writes the output to text file but i want put the value equal to variable but it never works!! I be happy if some expert help me.Thanks
Code:
Private Sub Reg(Path As String)
Dim task_id
task_id = shell("Regedit.exe /e " & Chr(34) & Path & Chr(34) & " " & Chr(34) & _
"HKEY_CURRENT_USER" & "\" & "Software\me\" & Chr(34))
'The Char For " is Chr(34)
MsgBox "shell function output: "+task_id
End Sub