Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 33
Default Macro to Delete blank cells

I have a table of data and i want to delete a block of blank cells within it.

i.e.
A b c d e f g h i
1 x x x x x x x x x
2 x x x x x x x x x
3 x x x...................x
4 x x.......[blank]...x
5 x x...................x
6 x x x x x x x x x
7 x x x x x x x x x

Does anyone know a marco that could select these cells and delete them and the data in column i move to column d. Note there may be some cells that are blank i.e. a5 & b4 that i do not want to delete.

Appreciate any support.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Macro to Delete blank cells

Record a macro when you select your range (avoid columns A:B???)
then edit|goto|special|Blanks
edit|delete|shift cells to the left
stop recording

And you'll have your code.

GarToms wrote:

I have a table of data and i want to delete a block of blank cells
within it.

i.e.
A b c d e f g h i
1 x x x x x x x x x
2 x x x x x x x x x
3 x x x...................x
4 x x.......[blank]...x
5 x x...................x
6 x x x x x x x x x
7 x x x x x x x x x

Does anyone know a marco that could select these cells and delete them
and the data in column i move to column d. Note there may be some cells
that are blank i.e. a5 & b4 that i do not want to delete.

Appreciate any support.

--
GarToms


--

Dave Peterson
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
Formula to delete blank cells across multiple columns? SamFunMail Excel Worksheet Functions 2 September 1st 05 07:05 AM
pivot tables reports - altering display of (blank) cells cak Excel Worksheet Functions 1 August 22nd 05 12:39 AM
blank cells R.VENKATARAMAN Excel Discussion (Misc queries) 1 April 6th 05 10:25 AM
How can I make the graph omit blank cells in the data set? easy Charts and Charting in Excel 3 March 17th 05 02:48 PM
Locate and delete specific cells David Smith Excel Discussion (Misc queries) 1 January 19th 05 04:45 PM


All times are GMT +1. The time now is 03:57 PM.

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"