Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default Add button to bottom of spreadsheet to delete blank lines auto

How can i add a button to the bottom of a spreadsheet which will
automatically delete/add blank lines when activated. Therefore you can click
it whenever you need to use this in a spreadsheet template?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Add button to bottom of spreadsheet to delete blank lines auto

I believe you would need two buttons.

One for deleting blank rows and one for inserting blank rows.

There is a built-in button for inserting rows.

ToolsCustomizeCommandsInsert.

Drag the Insert Rows button to your Toolbar.

For a delete blank lines macro, record yourself selecting a column and
F5SpecialBlanksOKEditDeleteEntire Row.

You'll get this code which you assign to a button.

Sub Macro1()
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
End Sub


Gord Dibben MS Excel MVP


On Tue, 7 Aug 2007 09:26:04 -0700, GD wrote:

How can i add a button to the bottom of a spreadsheet which will
automatically delete/add blank lines when activated. Therefore you can click
it whenever you need to use this in a spreadsheet template?


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 Blank Lines Saxman Excel Discussion (Misc queries) 3 January 9th 07 01:46 AM
How do i delete blank lines at bottom of an Excel worksheet? JoeOvercoat Excel Discussion (Misc queries) 2 September 2nd 06 11:54 PM
Is there a easy way to delete blank lines to clean up worksheets? jdf5 Excel Worksheet Functions 2 June 4th 06 06:05 PM
Delete Blank Lines Charles Excel Discussion (Misc queries) 3 August 8th 05 05:11 PM
How do I delete blank rows at the bottom of a spreadsheet to get . Miklaurie Excel Discussion (Misc queries) 1 January 26th 05 02:30 PM


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