Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default create a control button to insert rows

I want to creat a button on my spreadsheet then when you click on it you will
automatically insert a row above it.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default create a control button to insert rows


Just right-click a row header (the number of the row) and choose "Insert".
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"nadswilkes28"

wrote in message
I want to creat a button on my spreadsheet then when you click on it you will
automatically insert a row above it.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default create a control button to insert rows

I have a lot of different users to use my spreadsheet and some of them
continually mess up the whole insert row process so I am wanting to create a
button that all they have to do is click on and it will then automatically
insert rows for them. Thanks

"Jim Cone" wrote:


Just right-click a row header (the number of the row) and choose "Insert".
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"nadswilkes28"

wrote in message
I want to creat a button on my spreadsheet then when you click on it you will
automatically insert a row above it.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default create a control button to insert rows

Add an Active-X Command Button to your worksheet.

Then in the Sheet Code window select the object Command_Click (left
drop-down)and make it look like this:

Private Sub CommandButton1_Click()
ActiveCell.EntireRow.Insert '<<< Add this
End Sub

Hope this helps,
Jim May


"nadswilkes28" wrote:

I want to creat a button on my spreadsheet then when you click on it you will
automatically insert a row above it.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default create a control button to insert rows

There is an insert row button on the ToolsCustomizeCommandsInsert category
that can be dragged to a new toolbar you crate by ToolsCustomizeToolbarsNew

You can dock that most anywhere.

If you really want a macro assigned to a button, drop a button from the Forms
Toolbar onto your sheet and assign this code.

Sub insert()
Selection.EntireRow.insert
End Sub


Gord Dibben MS Excel MVP


On Mon, 14 May 2007 17:55:01 -0700, nadswilkes28
wrote:

I want to creat a button on my spreadsheet then when you click on it you will
automatically insert a row above it.


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
Create button to unhide rows directly below create button to unhide rows Excel Discussion (Misc queries) 1 January 22nd 07 02:08 AM
How do I create a Macro to sort data and insert blank rows & subto karinmpfa Excel Worksheet Functions 2 April 25th 06 09:57 PM
how do I create a macro to auto insert rows? aashish Excel Worksheet Functions 1 January 30th 06 11:49 PM
Adding a control button to insert a date in the active cell. Mike Excel Discussion (Misc queries) 2 February 15th 05 06:27 PM
How do I create a button or control that will automatically go to Roger Excel Worksheet Functions 1 October 29th 04 01:31 AM


All times are GMT +1. The time now is 05:28 AM.

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"