Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Can't find file

I get "Can't find file" when I run this. I am sure I am inserting the correct
file name to recall. The path is correct.

Is there something else I should qualify?

Sub CommandButton6_Click() 'Recall job

Application.ScreenUpdating = False
Application.DisplayAlerts = False

job = InputBox("Please enter JOB file name to recall", "Process
Technogies")
job1 = "c:\Time Seets\" & job & ".XLS"

Workbooks.Open Filename:=job1

Range("D3:D8").Select
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Can't find file

I don't know if you copied this code from your Excel sheet or if you typed it
by hand but one thing that springs to mind is that your directory is probably
called 'c:\Time Sheets\' and not 'c:\Time Seets\' as you've got in the code
below. This might explain why you're getting the error.

I've tried the code myself (substituting my own directories and filenames)
and it works for me.

"Oldjay" wrote:

I get "Can't find file" when I run this. I am sure I am inserting the correct
file name to recall. The path is correct.

Is there something else I should qualify?

Sub CommandButton6_Click() 'Recall job

Application.ScreenUpdating = False
Application.DisplayAlerts = False

job = InputBox("Please enter JOB file name to recall", "Process
Technogies")
job1 = "c:\Time Seets\" & job & ".XLS"

Workbooks.Open Filename:=job1

Range("D3:D8").Select
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Can't find file

Dumb - Thanks
"Andy Williams" wrote:

I don't know if you copied this code from your Excel sheet or if you typed it
by hand but one thing that springs to mind is that your directory is probably
called 'c:\Time Sheets\' and not 'c:\Time Seets\' as you've got in the code
below. This might explain why you're getting the error.

I've tried the code myself (substituting my own directories and filenames)
and it works for me.

"Oldjay" wrote:

I get "Can't find file" when I run this. I am sure I am inserting the correct
file name to recall. The path is correct.

Is there something else I should qualify?

Sub CommandButton6_Click() 'Recall job

Application.ScreenUpdating = False
Application.DisplayAlerts = False

job = InputBox("Please enter JOB file name to recall", "Process
Technogies")
job1 = "c:\Time Seets\" & job & ".XLS"

Workbooks.Open Filename:=job1

Range("D3:D8").Select
End Sub

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
How do I find a deleted excel file? Or an autosave file? Aladriel Excel Discussion (Misc queries) 10 January 3rd 08 07:46 PM
how to find find last file name and increment - XL2000 dunescratcher[_2_] Excel Programming 0 April 6th 06 07:35 PM
clicking .XLS file opens Excel 2003 but doesn't find the file Arrow Computer Excel Discussion (Misc queries) 2 August 10th 05 03:51 AM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM
Want file title listing as in Excel 5.0 File>Find jeffbro27707 Excel Discussion (Misc queries) 0 April 30th 05 07:31 PM


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

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

About Us

"It's about Microsoft Excel"