#1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default Constants

I use the following constant in a number of macros without any issues:

Const ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\Corp\Public\Groups\Accounting\Trans.mdb; Persist Security Info=False"

I have sent a new macro to a user at one of our cost centers and they are
getting the following message:

"Y:\Public\Groups\Accounting\Brood\Trans.mdb; Persist Security Info=False"
is not a valid path. Make sure that the path name is spelled correctly and
that you are connected to the server on which the file resides."

When I looked at the drives his machine was mapped to, the
\Corp\Public\Groups\Accounting\ drive wasn't there. I then mapped this drive
to his machine and had him re-boot and still no luck.

I'm not sure where this path ("Y:\Public\Groups\Accounting\Brood\Trans.mdb)
is coming from. It is not in the code in the macro. I do not believe it is
any other macro that he may be using. All of the macros that I am aware of
use the database at \Corp\Public\Groups\Accounting\

Can it be hidden somewhere and I'm not seeing it?

Any help would be greatly appreciated. Thanks for the help.....This one has
me ready to pull my hair out because I have used this contstant in over 20
macros and have never encountered this issue before.


--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Constants

Quick suggestions:
Look for any connections under the Data tab.
Also try searching EVERYTHING in the entire VBA Editor for the
string. Make sure their personal Workbook, which is a hidden
workbook, and all other hidden objects are included in the search as
well.
If there are any protected Add-In's that you can not search, turn them
off, one at a time, to see if they may be causing the issue.

Goshute
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
Constants Roger Excel Programming 2 July 24th 09 06:32 PM
Constants Roger Excel Programming 6 July 7th 09 06:13 PM
constants Confused Excel Discussion (Misc queries) 3 December 2nd 04 05:05 PM
constants alekm Excel Programming 1 September 9th 04 12:16 PM


All times are GMT +1. The time now is 08:53 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"