Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Help with script. Join values in helper column and run routine.


Hi,

How can I use the below script to join values in column L&J in helper
column 'columnM', then run the routine on columnM. At the end delete
columnM.
-------------------------------------------------
Sub Trimmer()
Worksheets("Data").Select
Range("a2").Select
firstRowFound = True
LastRow = Cells(Rows.Count, "j").End(xlUp).Row + 1
For i = 2 To LastRow
If IsError(Application.Match(Range("j" & i), _
Range("Susers"), 0)) Then
If firstRowFound = True Then
Rows(i).Select
firstRowFound = False
Else
Union(Selection, Rows(i)).Select
End If
End If
Next i
Selection.Delete Shift:=xlShiftUp
Columns.AutoFit
Range("L2").Select

End Sub
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
Auto update helper column tommcbrny Excel Discussion (Misc queries) 1 November 7th 08 03:49 AM
Validation function with helper column XKruodo Excel Worksheet Functions 0 July 14th 08 07:47 PM
help creating helper column Allen Clark Excel Programming 1 June 28th 06 05:18 AM
Changing the Helper Column apples72 Excel Discussion (Misc queries) 12 November 13th 05 10:22 PM
What is a helper column? RMPPOD Excel Discussion (Misc queries) 3 January 28th 05 07:37 PM


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