I'm trying to set namespace property from Shell.Application object dynamically.
With CreateObject("Shell.Application").Namespace(FolderName)
ExtendProperty = .GetDetailsOf(.Items.Item(FileName), 143)
End With
When values for FolderName and for FileName are fixed(hard coded) snippet is working. But when I try to pass them in as a variables; error Run-time error 91 - Object variable or With Block variable not set. is returning. Also I need to assign returned value to variable for later use; ExtendProperty. I'm a bit new to VBA and could not find anything on the internet(Scopes, locals, etc.) for this specific case.