Reputation: 9384
I want to create an IF statement to change a string depending on the operating system. Is this possible?
Idea:
Sub create_path()
Dim os_is_mac As Boolean
Dim slash As String
If os_is_mac Then
slash = "/"
else: slash = "\"
End if
end sub
Upvotes: 0
Views: 127