Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 33
Default Code to delete rows and column cells that have formulas in.

Hi all,

I currently use a sheet that has a table in the middle. The number of rows and columns varies, I then delete the blank ones. Each cell holds a formula retrieving the data from another sheet. Does anyone know any code that can delete these empty rows and column cells. Even if it just deleted empty rows (which include formulas it would be great).

SHEET
|----------------------------------------
|
| INFO
|
|-------------------------------
| a 1 aa ww | Table
| b 2 bb gg | (need to delete empty
| c 3 cc jj | rows and column cells)
|d 4 dd jj1 |
| |
|-------------------------------
|
| INFO
|
|
-----------------------------------------

Appreciate any help with this
Gar Toms
  #2   Report Post  
Member
 
Posts: 33
Default

I have solved this. By copying the table and paste special the formulas are removed. Conventional code to delete blank rows can then be used.

I still however cannot remove the cells in the column but i can live with that.


Quote:
Originally Posted by GarToms
Hi all,

I currently use a sheet that has a table in the middle. The number of rows and columns varies, I then delete the blank ones. Each cell holds a formula retrieving the data from another sheet. Does anyone know any code that can delete these empty rows and column cells. Even if it just deleted empty rows (which include formulas it would be great).

SHEET
|----------------------------------------
|
| INFO
|
|-------------------------------
| a 1 aa ww | Table
| b 2 bb gg | (need to delete empty
| c 3 cc jj | rows and column cells)
|d 4 dd jj1 |
| |
|-------------------------------
|
| INFO
|
|
-----------------------------------------

Appreciate any help with this
Gar Toms
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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Delete Rows where cells does not meet criteria Danny Excel Worksheet Functions 1 September 12th 05 05:08 PM
Delete all rows where Column A contains Text D Hafer - TFE Excel Worksheet Functions 3 July 1st 05 06:03 PM
Counting Rows/Columns for Copying Formulas SamDev Excel Discussion (Misc queries) 0 June 24th 05 04:13 AM


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