View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Melody Melody is offline
external usenet poster
 
Posts: 51
Default Print Directory to Excel

Yes, I mean the owner of the file/folder. I can't use the add-in because it
runs a .exe file and at work our pc's are set up to not allow us to install
programs. Sometimes it works sometimes it doesn't. I guess it depends on
how the program is set up to run.

Anyway, just as you can see in the code that the path, filename, last
saved, etc is displayed, I also wan to display the owner of the file/folder.
I don't know VBA enough to know what the value for that setting might be or
where to exactly put it in this code.

"JP" wrote:

Do you mean the Owner of the folder? That sounds like an API thing. Or
maybe the Windows Script Host or FileSystemObject.

But I'm confused. If you can use the code in your original post, why
can't you use Chip's add-in? They're both VBA code. I must be missing
something here.

--JP

On Sep 22, 4:59 pm, Melody wrote:
Thanks for the link. I can't run that program. I'm using my PC at work and
there are restrictions to installing programs. That's why I wanted to use
the VB programming.



"Kevin B" wrote:
See if this free add-in from Chip Pearson's website doesn't do the trick.


It installs as an XLA add-in and is accessed via the TOOLS menu in Excel.


http://www.cpearson.com/Excel/FolderTree.aspx
--