Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old August 12th 06, 06:46 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 2
Default can i write a macro to truncate alpha-numeric data?

I have imported a bunch of data into excel, however, the data I have has a
bunch of extra characters at the end that I don't need. Can I write a Macro
to delete a set number of characters off of each cell that I run the macro on?

  #2   Report Post  
Old August 12th 06, 07:59 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 1
Default can i write a macro to truncate alpha-numeric data?


This is the key code:
a = Replace(ActiveCell.Value, "s", "")
the rest is up to you!


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=570980

  #3   Report Post  
Old August 12th 06, 08:15 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 247
Default can i write a macro to truncate alpha-numeric data?

you dont necessarily need a macro .Post a sample of what the dates look like
now what you want them to look like
--
paul

remove nospam for email addy!



"T-Dot" wrote:

I have imported a bunch of data into excel, however, the data I have has a
bunch of extra characters at the end that I don't need. Can I write a Macro
to delete a set number of characters off of each cell that I run the macro on?



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
how do I email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
write macro to input data Macro Help New Users to Excel 4 December 30th 05 12:10 AM


All times are GMT +1. The time now is 05:01 PM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017