Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete Hidden Data

We sometimes get imported information with "noise" data.
How can I programatically delete the rows that appear
empty? Right now, I click on CTRL END and delete the
columns from the CTRL END point to the worksheeet with
info in it.


A B C D E F
1 Smith Atl GA
2 Jones Bir AL
3 Rose Oak CA CTR END

Programatically delete d1:f3
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Delete Hidden Data

to delete empty rows:


Sub Del_lignes_Vides()
Dim r, DerniereLigne
DerniereLigne = ActiveSheet.UsedRange.Rows.Count
For r = DerniereLigne To 1 Step -1
If Application.CountA(Rows(r)) = 0 Then Rows(r).Delete
Next r
ActiveSheet.UsedRange
End Sub

Col:

Sub DetruireColVides()
dernierecol = ActiveSheet.UsedRange.Columns.Count
Application.ScreenUpdating = False
For r = dernierecol To 1 Step -1
If Application.CountA(Columns(r)) = 0 Then Columns(r).Delete
Next r
End Sub


--
....Patrick
Quoi que vous fassiez, faites le bien .
Mail: http://cerbermail.com/?KPW0tTCjFw
Connectez vous sur ce forum par :
news://msnews.microsoft.com/microsoft.public.fr.excel

"SharonInGa" a écrit dans le message
de ...
We sometimes get imported information with "noise" data.
How can I programatically delete the rows that appear
empty? Right now, I click on CTRL END and delete the
columns from the CTRL END point to the worksheeet with
info in it.


A B C D E F
1 Smith Atl GA
2 Jones Bir AL
3 Rose Oak CA CTR END

Programatically delete d1:f3



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
Delete hidden cells brownti Excel Discussion (Misc queries) 2 February 6th 07 09:34 PM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
How do I delete hidden character in Excel? Isa Excel Discussion (Misc queries) 3 November 15th 05 04:29 PM
Delete hidden worksheets Shamsul Islam Excel Programming 2 February 16th 04 12:02 PM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Dick Kusleika[_3_] Excel Programming 2 January 21st 04 04:39 PM


All times are GMT +1. The time now is 02:18 PM.

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"