why doesn't this work?
MsgBox("F6D8C47B-46E6-4E93-A393-00085ACA2242").ToString.Replace("-", "")
why doesn't this work?
MsgBox("F6D8C47B-46E6-4E93-A393-00085ACA2242").ToString.Replace("-", "")
You're calling ToString on the MsgBox, not the Guid, which apparently is already a string. Try
MsgBox("F6D8C47B-46E6-4E93-A393-00085ACA2242".Replace("-",""))