LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete Characters in an active cell

I have something like "9/12/03 Joe Average" in several
cells (dates and names are different of course). I would
love to be able to write a macro or routine that
eliminates everything after the first space, leaving only
the date.

I can definitely do this the "long way" by inserting an
empty column and then combining the MID and LEN functions,
then using copy, paste special (values) and then deleting
the original column.

However, I just thought there might be a quicker way by
using VBA code by using something like:

ActiveCell.Characters.Delete

But I guess I would need some sort of MID and LEN formula
in there to help me know WHAT characters to delete. Is
this method worth exploring?? Can anyone assist?

Thanks in Advance,
Don

 
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
Find last cell in a column, Delete its contents and make it active George Excel Worksheet Functions 5 January 28th 10 05:38 PM
Delete first two characters in a cell... ChuckF Excel Worksheet Functions 6 September 5th 06 08:46 PM
Delete first few cell characters mohd21uk via OfficeKB.com Excel Discussion (Misc queries) 4 June 7th 06 12:32 PM
How do I move cursor in an active cell without using delete/backsp Sam Excel Discussion (Misc queries) 2 May 29th 06 02:39 AM
Delete row where active cell is located using VBA Jeff Marshall Excel Programming 3 July 19th 03 05:55 PM


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

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"