Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Removing Comma's

Hi Scott

You can use the following line to remove all commas from the
activesheet:

Activesheet.cells.Replace What:=",", Replacement:="", LookAt:=xlPart

You can restrict this to a particular column or range if required eg:

Columns(1).Replace What:=",", Replacement:="", LookAt:=xlPart

Does this do what you wanted?

Best regards

Richard



Scott_goddard wrote:

I have a work book with over 2000 cells each one differing in length and
content. They are all address. Each line is separated by a comma. I need
to remove these, any ideas???


Reply
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
Replace Comma's with Dash [email protected] Excel Worksheet Functions 3 May 5th 23 11:45 AM
Removing spaces and adding comma's using a Macro Jeroen[_2_] Excel Programming 2 May 24th 06 10:50 AM
Exporting to text, cells with comma's are placed in quotes. -Bad pallid Excel Discussion (Misc queries) 3 October 28th 05 04:41 PM
Message box to return curency with $ and comma's intact Ed P[_2_] Excel Programming 4 December 20th 04 05:06 PM
exporting to file (switching comma's and points) ties[_3_] Excel Programming 0 December 3rd 04 02:53 PM


All times are GMT +1. The time now is 03:19 PM.

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

About Us

"It's about Microsoft Excel"