Hello Marina,
I wonder, is "variable" the result of a Strings.Mid or Strings.Right
operation? In that case it could be that you cut one character too far
to the left.
Example:
Private Sub Test()
Dim Directory As String ="C:\Windows"
Dim Variable As String
Variable = Strings.Right(Directory,8)
MsgBox("\" & Variable)
End Sub
In this example you would receive "\\Windows", because you cut the
string for "variable" with 8 instead of 7 digits. Maybe it is a similar
issue with your code?
Best regards,
Martin
Marina wrote:
> Hi,
>
> I'm trying to concatenate: "\" & variable, where variable is some
> string, but VB is making it to be "\\variable".
> for example if variable is "Test", vb is making it to be "\\Test"
> instead of "\Test".
>
> I've tried almost everything.
> Does anyone has an idea.
>
> Thanks a lot, Marina
> (E-Mail Removed)
>