![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 83
|
Please help.
I have a list of companies and some have a * at the end of them. When I run the code below it deletes the whole name, even if the matchcase is set to false. Any ideas??? Thankyou in advance for your help!!!! Worksheets(1).Columns("b").Replace _ What:="*", Replacement:="", _ SearchOrder:=xlByColumns, MatchCase:=True |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
Try putting a ~ ( tilde ) befoer the * eg :
Worksheets(1).Columns("b").Replace _ What:="~*", Replacement:="", _ SearchOrder:=xlByColumns, MatchCase:=True |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Posts: 83
|
Thank you the ~ works fine.
Many thanks Steve |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Posts: 83
|
Thank you the ~ works fine.
Many thanks Steve |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|