Forum Discussion
Opening a other type of document
Testing is above studying 🙂
Nikolino
I know I don't know anything (Socrates)
Hi, Thank You i will try it!!! Just one question what does the $ in vba refers to??? My vba does not like it at all, gives a syntax error color red.
All this is red
If Right $ (LCase $ (grgRbereich.Value), 4) = ".pdf" Then
ChDrive $ Left (grgRbereich.Value, 3)
ChDir $ Left (grgRange.Value, InStrRev (grgRange.Value, "\", -1))
ShellExecute 0, "open", Dir $ (grgArea.Value), "", CurDir $ & "\", 1
All this is red
Set large area = ActiveCell
Thank You
Regards
Kobus
- NikolinoDENov 05, 2020Gold Contributor
The dollar sign indicates a string will be returned instead of a variant.
You can find more information and examples here
https://stackoverflow.com/questions/3389444/what-does-the-symbol-do-in-vba
Hope I could help you a little bit with your plans
Nikolino
I know I don't know anything (Socrates)