#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default CurDir

Need proper syntax for using CurDir to open a file "test.xls" in the current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CurDir

Help has the syntax, but use ChDrive as well.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in message
...
Need proper syntax for using CurDir to open a file "test.xls" in the

current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default CurDir

I was looking for the syntax for putting it into a "windows.open filename="
string with the filename.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141


"Bob Phillips" wrote:

Help has the syntax, but use ChDrive as well.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in message
...
Need proper syntax for using CurDir to open a file "test.xls" in the

current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CurDir

Hi Bryan

Try this

Workbooks.Open CurDir & "/ron.xls"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bryan Brassell" wrote in message
...
I was looking for the syntax for putting it into a "windows.open filename="
string with the filename.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141


"Bob Phillips" wrote:

Help has the syntax, but use ChDrive as well.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in message
...
Need proper syntax for using CurDir to open a file "test.xls" in the

current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CurDir

Use the file dialog

With Application.FileDialog(msoFileDialogFolderPicker)
.Show
MsgBox .SelectedItems(1)


End With


--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in message
...
I was looking for the syntax for putting it into a "windows.open

filename="
string with the filename.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141


"Bob Phillips" wrote:

Help has the syntax, but use ChDrive as well.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in

message
...
Need proper syntax for using CurDir to open a file "test.xls" in the

current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CurDir

oops wrong question.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bob Phillips" wrote in message
...
Use the file dialog

With Application.FileDialog(msoFileDialogFolderPicker)
.Show
MsgBox .SelectedItems(1)


End With


--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in

message
...
I was looking for the syntax for putting it into a "windows.open

filename="
string with the filename.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141


"Bob Phillips" wrote:

Help has the syntax, but use ChDrive as well.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Bryan Brassell" wrote in

message
...
Need proper syntax for using CurDir to open a file "test.xls" in the
current
directly.
--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CurDir CLR Excel Programming 3 December 21st 05 06:49 PM
Curdir Jos Vens[_2_] Excel Programming 2 March 29th 05 12:53 PM
CurDir does not work Jim73 Excel Programming 3 January 12th 05 08:15 AM
CurDir vi_sh_wa Excel Programming 2 December 14th 04 08:17 AM
Excel 97 VBA - CURDIR, not reliable Ricke G Excel Programming 2 July 28th 04 07:52 PM


All times are GMT +1. The time now is 09:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"