Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This works perfect but how would I add the following? Please Help.
How can I add if len(trim(cell)) <9521 then Dim bkList As New Collection With Workbooks("1DLSUNDAY.XLS").Worksheets("Master") Set rng = .Range(.Cells(2, 3), .Cells(200, 3).End(xlDown)) End With On Error Resume Next For Each cell In rng if len(trim(cell)) 0 then bkList.Add Trim(cell.Text), Trim(cell.Text) end if Next On Error GoTo 0 For Each itm In bkList Workbooks.Open "C:\Documents and Settings\Tom\Desktop\CHARTER BLANK\NEW BLANK\" & _ itm & ".xls" Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=TRIM | Excel Discussion (Misc queries) | |||
trim | Excel Worksheet Functions | |||
VBA and Trim | Excel Programming | |||
VBA Trim and Application.worksheetfunction.Trim | Excel Programming | |||
Trim like worksheet Trim | Excel Programming |