PC Review


Reply
Thread Tools Rate Thread

Directory & File names with spaces - brackets usage

 
 
JDB
Guest
Posts: n/a
 
      8th Jul 2008
Sorry, this is a re-post, the first did not show up after 8 hrs. will
try again.
--------------------------------------------------------------------------
I am trying to open an Excel file thru Access VBA and cannot open the
file.
The various directories on the path have spaces in them i.e. "My
Documents".

I understand by various posts that I might need to use brackets around
the path, but cannot seem to find the right combinations of brackets
and double quotes to be able to open/read the file.

Any pointers would be helpful.

Thanks
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      9th Jul 2008
On Tue, 8 Jul 2008 13:19:24 -0700 (PDT), JDB <(E-Mail Removed)> wrote:

>Sorry, this is a re-post, the first did not show up after 8 hrs. will
>try again.
>--------------------------------------------------------------------------
>I am trying to open an Excel file thru Access VBA and cannot open the
>file.
>The various directories on the path have spaces in them i.e. "My
>Documents".
>
>I understand by various posts that I might need to use brackets around
>the path, but cannot seem to find the right combinations of brackets
>and double quotes to be able to open/read the file.
>
>Any pointers would be helpful.
>
>Thanks


Brackets won't help in this case; quotes will: e.g.

"C:\Documents and Settings\Username\My Documents\myspreadsheet.xls"

as a string value will point to the file.
--

John W. Vinson [MVP]
 
Reply With Quote
 
JDB
Guest
Posts: n/a
 
      10th Jul 2008
OK, thanks for input re quotes. Will try them somemore.

JDB

On Jul 8, 8:00*pm, John W. Vinson <jvinson@STOP_SPAM.WysardOfInfo.com>
wrote:
> On Tue, 8 Jul 2008 13:19:24 -0700 (PDT), JDB <jdbNewsGro...@gmail.com> wrote:
> >Sorry, this is a re-post, the first did not show up after 8 hrs. *will
> >try again.
> >--------------------------------------------------------------------------
> >I am trying to open an Excel file thru Access VBA and cannot open the
> >file.
> >The various directories on the path have spaces in them i.e. "My
> >Documents".

>
> >I understand by various posts that I might need to use brackets around
> >the path, but cannot seem to find the right combinations of brackets
> >and double quotes to be able to open/read the file.

>
> >Any pointers would be helpful.

>
> >Thanks

>
> Brackets won't help in this case; quotes will: e.g.
>
> "C:\Documents and Settings\Username\My Documents\myspreadsheet.xls"
>
> as a string value will point to the file.
> --
>
> * * * * * * *John W. Vinson [MVP]- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory & File names with spaces - brackets usage JDB Microsoft Access VBA Modules 2 8th Jul 2008 02:09 PM
File/Folder names with [square brackets] Adahn Windows Vista File Management 0 12th May 2006 02:03 PM
Help: copying directory share names whilst doing bulk directory/file duplication. Troy Microsoft Windows 2000 1 4th May 2005 12:15 PM
SP2, IE6 and Spaces in File Names Rubber Chicken Windows XP General 1 1st Nov 2004 06:22 PM
Re: spaces and special characters in field names, brackets don't work Marina Microsoft ADO .NET 4 16th Sep 2004 01:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 PM.