Get file name syntax

N

Norman Goldsmith

I wnat to prompt a user to locate an Excel file so that I can use the file
name to input the data using a pre-defined map. I can't figure out the
syntax that will return the just the filename and not try to import the
Excel data. Can someone help?

Thank you for any help,

Norm
 
R

Rod Gill

Hi,

Unfortunately Project does not have Excel VBA's GetFileOpenName so you need
to use a Windows API. Try www.mvps.org/access and look at their API samples.
They have a file open one that works in Project as well. Failing that, my
book has an example!

--

Rod Gill
Project MVP

NEW!! Project VBA Book, for details visit: http://www.projectvbabook.com
 
N

Norman Goldsmith

Rod,

Thank you, I suspected that was the real answer. I'll browse the site while I
await delivery of your book.

Thanks,
Norm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top