LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Difference between Excel 2002 and 2003?

Hi all,
I have a function that works well in Excel 2003.
This function is to get file name from a file path
Like: GetFileName("C:\folder1\name1.txt"
it returns: "name1.txt"

Function GetFileName(fullpath As String)
Dim strFInd As String
Do Until Left(strFInd, 1) = "\"
icount = icount + 1
strFInd = Right(fullpath, icount)
If icount = Len(fullpath) Then Exit Do
Loop
GetFileName = Right(strFInd, Len(strFInd) - 1)
End Function

But it does not work in Excel 2002, maybe because it does not support
Left and Right function in Excel 2002?
How to use this function in Excel 2002 then?
Thanks!

michael

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between excel 2003 and 2005? ferret3 Excel Discussion (Misc queries) 2 July 22nd 08 10:02 PM
Excel 2002: unexplainable difference in sum of columns Alex Schugman Excel Discussion (Misc queries) 1 February 9th 08 04:48 PM
Excel 2002 : How to get the difference in a block of data ? Mr. Low Excel Discussion (Misc queries) 28 December 10th 06 02:45 PM
Difference between Publish and Save As Web Page in Excel 2002 johng36 Excel Discussion (Misc queries) 2 February 4th 05 07:29 PM
Difference between ExcelXP and Excel 2003 Wesley Excel Worksheet Functions 2 January 26th 05 11:03 PM


All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"