Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try the following:-
strWkBKName = ThisWorkbook.Name strResult = Mid(strWkBKName, InStr(1, strWkBKName, "_") + 1, Len(strWkBKName) - 4 - InStr(1, strWkBKName, "_")) "Ixtreme" wrote in message ... Hi, In vba I want to get a part of the workbooks' name in a string. Each workbook has a name like this test_XX_YYY.xls or only test_XX.xls I want everything before .xls and after the first underscore sign. For the above filenames I would like to have: XX_YYY and XX |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Adding a custom function to the default excel function list | Excel Programming |