Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Cut cells from column A that contain "/" Paste them to column B

Subject says it all. How do I search column A, find all cels that contain
the backslash character, then cut them from A and place them in Column B


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cut cells from column A that contain "/" Paste them to column B

Hi
try the following macro:
Sub cut_rows()
Dim lastrow As Long
Dim row_index As Long
Application.ScreenUpdating = False
lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
For row_index = 1 to lastrow
with Cells(row_index, 1)
If instr(.Value, "\")0 then
.offset(0,1).value=.value
.clearcontents
End If
end with
Next
Application.ScreenUpdating = True
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

"Yogi_Bear_79" schrieb im Newsbeitrag
...
Subject says it all. How do I search column A, find all cels that

contain
the backslash character, then cut them from A and place them in

Column B



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Cut cells from column A that contain "/" Paste them to column B

Worked Perfectly..Many Thanks


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
Create Pivot Table Data with Column "Sum" rather than "count" defa Johnny_99[_2_] Excel Discussion (Misc queries) 2 January 2nd 10 03:25 PM
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
copy--paste--special "formula" for a whole column Janis Excel Discussion (Misc queries) 2 July 31st 07 04:40 PM
Compare cells in column A ("ID") to column A ("ID)in two differen. Gssjp6423 Excel Worksheet Functions 0 December 5th 06 04:19 PM
how can I count if column A="active" and column E="Job" in a list? Brandoni Excel Worksheet Functions 1 October 14th 06 09:09 AM


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