Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
RIGHT function in VBA
Hello,
How can I invoke RIGHT function within VBA? I just need to extract the last 2 characters in activecell. I've tried "Application.WorksheetFunction.Right(Activecell,2) " but that RIGHT doesn't seem to exist. Thanks a lot. -- Edmund (Using Excel XP) |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
RIGHT function in VBA
You don't need to use the worksheet function. The function exists in VBA.
Just use val = right(activell,2). "Edmund" wrote: Hello, How can I invoke RIGHT function within VBA? I just need to extract the last 2 characters in activecell. I've tried "Application.WorksheetFunction.Right(Activecell,2) " but that RIGHT doesn't seem to exist. Thanks a lot. -- Edmund (Using Excel XP) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
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 | |||
Adding a custom function to the default excel function list | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |