Originally Posted by :) Sixthsense :) How to install your new code Copy the Excel VBA codeSelect the workbook in which you want to store the Excel VBA codePress Alt+F11 to open the Visual Basic EditorChoose Insert > ModuleEdit > Paste the macro into the module that appearedClose the VBEditorSave your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm) Function GetType(r As Range) As String GetType = Right(r.Cells(1).Text, 2) End Function In C2 Cell =GetType(B2) Drag it down... thanks and also an help to minus (-) sign before all Cr Balance if that possible Sandy
Function GetType(r As Range) As String GetType = Right(r.Cells(1).Text, 2) End Function
There are currently 1 users browsing this thread. (0 members and 1 guests)
Forum Rules
Bookmarks