Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Cell value is preceded by an apostrophe. On trigger to that cell, I need to detect and... - show msgbox "apstrophe detected" - remove apstrophe - show msgbox "apstrophe removed" -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=395245 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
This assumes first character is apstrophe: If Left(ActiveCell, 1) = "," Then MsgBox " Apostrophe detected " Range("a1") = Replace(ActiveCell, ",", "") ' Or Range("a1") = Right(ActiveCell, Len(Range("a1")) - 1) MsgBox " Apostrophe removed " End If "ilyaskazi" wrote: Cell value is preceded by an apostrophe. On trigger to that cell, I need to detect and... - show msgbox "apstrophe detected" - remove apstrophe - show msgbox "apstrophe removed" -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=395245 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want Apostrophe = "*::'::*" and not comma = "*::-,-::* -- ilyaskaz ----------------------------------------------------------------------- ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396 View this thread: http://www.excelforum.com/showthread.php?threadid=39524 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Left(ActiveCell, 1) = "'" Then
MsgBox " Apostrophe detected " Range("a1") = Replace(ActiveCell, "'", "") ' Or Range("a1") = Right(ActiveCell, Len(Range("a1")) - 1) MsgBox " Apostrophe removed " End If "ilyaskazi" wrote: I want Apostrophe = "*::'::*" and not comma = "*::-,-::*" -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=395245 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Oops again! Sorry! Range("a1") = Replace(ActiveCell, "'"' "") "Toppers" wrote: If Left(ActiveCell, 1) = "'" Then MsgBox " Apostrophe detected " Range("a1") = Replace(ActiveCell, "'", "") ' Or Range("a1") = Right(ActiveCell, Len(Range("a1")) - 1) MsgBox " Apostrophe removed " End If "ilyaskazi" wrote: I want Apostrophe = "*::'::*" and not comma = "*::-,-::*" -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=395245 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dear Toppers, Removing apostrophe is not the problem for me. Problem is to detect and show msgbox saying "Apostrophe detected" Removing is working perfect if seprated from the if loop. Please check with the if loop to detect. Regards ilyaskazi -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=395245 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove Apostrophe from end of number | Excel Discussion (Misc queries) | |||
Remove Trailing Apostrophe | Excel Discussion (Misc queries) | |||
how to remove the apostrophe | Excel Discussion (Misc queries) | |||
Remove apostrophe | Excel Worksheet Functions | |||
Remove Formatting Apostrophe | Excel Programming |