Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Cannot find path!

I recently moved from Excel 2003 to Excel 2010. My VBA application reside on a network. At the beginning I define global constant like this:
Public Const pathSAP As String = "K:\Indic_Entr\interne\SAP\"

With 2003 everything worked fine. Now I get an error message saying that it cannot
fine the path. I'm the only one?
Is there a solution for this?
thank's ahead!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Cannot find path!

Bobby wrote:

I recently moved from Excel 2003 to Excel 2010. My VBA application
reside on a network. At the beginning I define global constant like
this:
Public Const pathSAP As String = "K:\Indic_Entr\interne\SAP\"

With 2003 everything worked fine. Now I get an error message saying that
it cannot fine the path. I'm the only one?
Is there a solution for this?
thank's ahead!


Post your code. More than just one line.

--
- Seen anything remotely raise looking lately?
- Only when I raise my eyebrows when you say some crazy ****.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Cannot find path!

On Thursday, November 1, 2012 7:04:40 PM UTC-4, Bobby wrote:
I recently moved from Excel 2003 to Excel 2010. My VBA application reside on a network. At the beginning I define global constant like this:

Public Const pathSAP As String = "K:\Indic_Entr\interne\SAP\"



With 2003 everything worked fine. Now I get an error message saying that it cannot

fine the path. I'm the only one?

Is there a solution for this?

thank's ahead!


I found the reason and the solution to this situation. For an unknown reason I did not fully qualified the name of a Workbook with the VBA function Workbooks.Open Filename.
E.I: Workbooks.Open Filename:=test
The funny part is that it worked well with Excel 2003 VBA and not with Excel 2010. I just added the extension of .XLS and everything when fine!

E.I: Workbooks.Open Filename:=test.XLS
Hoping this will help somebody!
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
Find WkBk Path, Then use this path to open another WkBk in Subfold dim Excel Programming 10 April 23rd 08 01:00 AM
How to find out the path to excel.exe thru vb [email protected] Excel Programming 1 March 19th 06 09:24 PM
Find Excel path Lieven Mettepenningen[_2_] Excel Programming 5 December 14th 04 01:22 AM
find a path rbekka33[_16_] Excel Programming 0 September 21st 04 11:56 PM
find if there is a particular folder in a path nikolaosk[_11_] Excel Programming 2 October 20th 03 08:22 AM


All times are GMT +1. The time now is 10:28 AM.

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"