Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The below macro works perfect. It extracts the name from a text. How
can I change below macro into "Public Function" Please can any friend can help Sub GetNames() For Each Cell In Range("A1:A4") Text = Replace(Split(Cell, "\")(UBound(Split(Cell, "\"))), ".", " ") Parts = Split(Text, " ", 3) Parts(2) = "" Cell.Offset(0, 1).Value = Trim(Join(Parts)) Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Macro / Function | Excel Worksheet Functions | |||
Macro + IF Function? | Excel Discussion (Misc queries) | |||
If function in Macro | Excel Programming | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming |