Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Copying part of a string to another cell

this should work. Put it in the standard code module1


Sub cpyAtoK()
Dim c As Range
lstRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
Set aRng = ActiveSheet.Range("A1:A" & lstRow)
For Each c In aRng
If Not c Is Nothing Then
c.Offset(0, 10) = Left(Trim(c.Value), 6)
End If
Next
End Sub


"Chad" wrote:

Hi All,

Is there an easy way to do this?
I want to copy the first 6 characters from [A1] to [K1], [A2]..[K2] all the
way to last row.

I am assuming I will have to use a loop and use the Left command. I was
just hoping for an easier way since it is the entire column.

Chad



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
Copying part of a cell David Excel Discussion (Misc queries) 3 December 29th 09 08:46 PM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
copying part of a number string Bill R Excel Discussion (Misc queries) 1 February 12th 06 10:38 PM
Move Part of Cell String tom[_7_] Excel Programming 8 October 13th 05 06:37 PM
select part of a cell value string rich_j_h Excel Discussion (Misc queries) 2 May 19th 05 11:36 AM


All times are GMT +1. The time now is 09:26 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"