![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
This macro enters the address of a folder on a remote server into a cell, thus:
Range("a1").Value = "\servernamegroupnamelocalfolder" The macro then goes on to open a file in that location. Works fine, of course, except that one user reports that it doesn't work - investigation reveals that instead of entering "\servername..." it is entering "'servername..." - i.e. replacing the first backslash with a single quote mark. I have been unable to duplicate this, and as the user is several hundred miles away it is not practicable for me to look at his system to find out what is going on. Does any one have any idea why Excel is taking it into its head to do this? I can think of a few workrounds, but I would rather identify & cure the problem itself. Thanks |
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
More weird behaviour on this board - it has entered extra backslashes!
To clarify where 4 backslashes are shown there should be 2, where 2 there should be 1. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
Now the extra backslashes have gorn!
Ho hum. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|