Hi
I want to use this code to display only the filename + extension in the TextBox1. It currently shows the full path
![]()
Please Login or Register to view this content.
Hi
I want to use this code to display only the filename + extension in the TextBox1. It currently shows the full path
![]()
Please Login or Register to view this content.
Last edited by CobraLAD; 04-21-2009 at 12:19 AM.
Try with the following, I am hope it will be useful to you
![]()
Please Login or Register to view this content.
Last edited by VBA Noob; 04-20-2009 at 08:36 AM.
Try:-
Regards Mick![]()
Please Login or Register to view this content.
Thanks MickG
Is there a way to specify a specific file type. I want to only open jgp files
Hi, Do you mean "jpg" or "jgp" ??
I think the easiest way is as below, but there is some Code in Vb Help Under "FiledialogFilters Collection".
Regards Mick![]()
Please Login or Register to view this content.
Sorry Mick, it was jpg files.
This works fine, but how will I use the code without Dir, so that the full path with the filename shows in the TextBox.
Hi, Just remove the "Dir" !!
Regards Mick![]()
Please Login or Register to view this content.
End If
Another method - this will only Display JPG files
Selection for only 1 file at a time
![]()
Please Login or Register to view this content.
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
thanks all
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks