Z zezo2021 Member Local time Today, 18:03 Joined Mar 25, 2021 Messages 412 Feb 6, 2023 #1 hello friends Get File name without Extension sample of the file name is 02.14.2021 (1).xls any idea or solution Thanks in advance and your help is appreciated
hello friends Get File name without Extension sample of the file name is 02.14.2021 (1).xls any idea or solution Thanks in advance and your help is appreciated
June7 AWF VIP Local time Today, 08:03 Joined Mar 9, 2014 Messages 5,916 Feb 6, 2023 #2 If file extension is always 3 characters, simply: Left(x, Len(x) - 4) Otherwise: Left(x, InStrRev(x, ".")-1)
If file extension is always 3 characters, simply: Left(x, Len(x) - 4) Otherwise: Left(x, InStrRev(x, ".")-1)
G Galaxiom Super Moderator Staff member Local time Tomorrow, 02:03 Joined Jan 20, 2009 Messages 12,895 Feb 6, 2023 #3 If you are working with the FileSystemObject you can use the GetBaseName Method. GetBaseName method (Visual Basic for Applications) Office VBA reference topic learn.microsoft.com
If you are working with the FileSystemObject you can use the GetBaseName Method. GetBaseName method (Visual Basic for Applications) Office VBA reference topic learn.microsoft.com
Z zezo2021 Member Local time Today, 18:03 Joined Mar 25, 2021 Messages 412 Feb 7, 2023 #4 Thanks for your help