hi,

I have the line of code:

xlWorkBook = xlApp.Workbooks.Open("c:\mydocs\full_info.xlsm")

my problem is i want to load the file without a full path, "full_info.xlsm", but i can't seem to find the right place to put it.

i have the program name directory which contains folder 'bin' 'myproject' 'obj' and bin has 'debug' and 'release' ( of which i use one at a time). Any idea where local folder is in visual studio for running with start as opposed to launching program that is only an exe?

Mike

Use System.Windows.Forms.Application.ExecutablePath to get the path of executable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.