LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
A Waller
 
Posts: n/a
Default How do I eliminate spaces/characters from the beginning of a cell

I have a macro that has hit a snag. On one of the pages of the workbook, I
have a list of product codes. Some are copied over and sort fine. Others, the
same codes, are copied with a leading space or a " ' " before the code. Is
there an If then statement I can use that will remove any leading spaces or
this symbol? It's messing up a sort that the entire macro depends on. Not all
of the product codes have these spaces or characters which is why I need an
if then statement to do nothing if they aren't there and to remove them if
they are. Thanks in advance for any help you can offer.
--
A Waller
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I eliminate 1 bar on the bar chart? crossingmind Charts and Charting in Excel 2 May 15th 05 03:51 AM
how eliminate zeros in blank cells using paste link sea kayaker Excel Worksheet Functions 2 April 16th 05 10:19 PM
How do I eliminate zeros from my Excel database? HDOTM Excel Discussion (Misc queries) 1 January 13th 05 07:54 PM
macro to eliminate spaces between words CSAM Excel Discussion (Misc queries) 3 December 17th 04 11:39 AM
eliminate white space in Excel file WhirlWind Excel Discussion (Misc queries) 3 November 30th 04 04:22 PM


All times are GMT +1. The time now is 06:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"