Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2004, 09:55 AM
Registered User
 
Join Date: Jan 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get a filename from directory

Hi for all

This is my first time that I write for you all.
I have a question:
I have the following path:
"C:\Documents and Settings\alex\Desktop\relato\detalhado\23_det_0520 01.LST"
I would like to get only the filename, "23_det_052001.LST" and save it in a variable.

 
Old January 7th, 2004, 03:18 AM
Authorized User
 
Join Date: Nov 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look in the VBE Help for GetOpenFileName Method of the Excel Application Object.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Filename ozPATT Access VBA 1 November 28th, 2005 01:56 PM
How to save the different filename loveperson VB How-To 1 December 23rd, 2004 04:53 PM
Invalid filename Bhavin Crystal Reports 0 December 15th, 2004 05:00 PM
filename validation silver_cuts Classic ASP Basics 6 June 24th, 2004 06:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.