View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.programming
Calligra[_2_] Calligra[_2_] is offline
external usenet poster
 
Posts: 17
Default Deleting Unneeded Records

Try the following:

Dim iMinCol as integer
Dim iMaxCol as integer
Dim i as integer

iMinCol = 1
iMaxCol = n

For i = iMinCol to iMaxCol
If Sheet1.Cells(1, i).Value = "Power" Then
Sheet1.Columns(i).Delete
Exit For
End If
Next i


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!