how can i remove a cell value(string) if the cell value starts with space
requred vba code
how can i remove a cell value(string) if the cell value starts with space
requred vba code
Last edited by anilg0001; 09-16-2014 at 02:47 AM.
Re: how can i remove a cell value(text) if the cell value starts with space
Last edited by anilg0001; 09-16-2014 at 02:48 AM. Reason: change required
Hi Anil,
You can use the below code and hope this is what you want:
Note: Instead of cell A1, use can also enter range value.Please Login or Register to view this content.
Regards,
Paresh J
Click on "* Add Reputation" as a way to say thanks
thanks Pareshj
when i do that it will clear what ever the value in a1 cell
actually i need
if my A1 range has a string which start with space then i need to delete that cell value
eg
if " anil" need to delete
if "anil" not to delete
Hi Anil,
Check the below code and hope this will help you:
Please Login or Register to view this content.
Note: Please change Sheet1 and Range as per your requirement.
Regards,
Paresh J
Please Login or Register to view this content.
thanks paresh j
i tried ur code but nothing was happening
these are the examples of a range
DEI Black Exhaust Wrap
XDP Price: From $25.78 to $75.38
rating
Universal - All Makes & Models
DEI Cell Saver - Battery Insulation Kit 010480
DEI Cell Saver - Battery Insulation Kit 010480
List Price: $23.97
XDP Price: $17.98
You Save: $5.99 (25 %)
Universal - All Makes & Models
DEI Cool Cover Air Tube Cover Kit 010417
DEI Cool Cover Air Tube Cover Kit 010417
here A5 and A11 texts are starting with space which i need to be blank
please review
For column A, simply:
Please Login or Register to view this content.
Remember what the dormouse said
Feed your head
or
Please Login or Register to view this content.
Regards,
Nandkumar S.
---------------------------------------------------------------
Don't forget to Click on * if you like my solution.
Hi Anil,
Are you try space find replace ?
thanks rishiraj46
i tried both
range("A:A").Replace " *", "", xlwhole
Sub anilg0001()
Columns(1).Replace " *", ""
End Sub
but no results
thanks mr.AB33
which is not working
hello AB33
ur code is correct but i do not need to delete the row i need that cell value=""
thanks
hello AB33
thanks dear i change it
thanks for spending ur valuable time
Maybe:
Please Login or Register to view this content.
Hi Anil
Try this
Find what: alt+0010
OR alt+0013
Replace with: Black
find replace.png
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks