![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Hi,
I have file link written like this: C:WINDOWSDesktopExcel stuff[RHOD1.xls] I need a worksheet function to just give me: C:WINDOWSDesktopExcel stuffRHOD1.xls in another cell. What is the best way of doing this? Many thanks RET79 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Nice work!
RET79 |
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
A VBA UDF i wrote to do this, uses Jacks Range. Hope you like this i love UDF's
Function Jack_RemvBraces(MyRange As Range) As String Dim strResult As String Application.Volatile If InStr(1, MyRange, "[") <> 0 Then strResult = Trim(Left(MyRange, _ WorksheetFunction.Search("(", MyRange) - 1)) Else strResult = MyRange End If Jack_RemvBraces = strResult End Function Try this function = Jack_RemvBraces( then click the insert function to allow Jack UDF input range to be input MARKER Braces
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|