Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How do I set up a key to insert rows in excel?

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I set up a key to insert rows in excel?

Hi,

Alt+F11 to open VB editor. Right click 'This Workbook' and insert module and
paste this in on the right

Sub insert()
Selection.EntireRow.insert
End Sub

Back on the worksheet:
Tools|Macro|Macros
From the dropdown select 'This Workbook' and highlight the macro name
Click 'Options'
Enter a letter to call your macro

Back on the worksheet CTRL+(Letter) will insert an entirerow.

Mike

"cravingmad" wrote:

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default How do I set up a key to insert rows in excel?

Do you mean:

Sub InsetIt()
ActiveCell.EntireColumn.Insert
End Sub

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cravingmad" wrote in message
...
Ages ago I set up a function (ctrl + 2 I think) so I could easily add a
row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How do I set up a key to insert rows in excel?

Hi, I'm sorry I was alright with the opening of the VB editor, then right
clicked 'this workbook' - do i then typr in sub insert etc.. in the blank box
that opened - sorry if I seem thick, but i'm sure i didn't do this last time.
Thanks again.
Helen

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Right click 'This Workbook' and insert module and
paste this in on the right

Sub insert()
Selection.EntireRow.insert
End Sub

Back on the worksheet:
Tools|Macro|Macros
From the dropdown select 'This Workbook' and highlight the macro name
Click 'Options'
Enter a letter to call your macro

Back on the worksheet CTRL+(Letter) will insert an entirerow.

Mike

"cravingmad" wrote:

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I set up a key to insert rows in excel?

Hi,

In the empty box on the right simply paste the 3 lines of code I gave you
which include the Sub & end sub bit

I forgot to mention on my past post you can pick a number to run your macro
as well as a lettter.

Mike

"cravingmad" wrote:

Hi, I'm sorry I was alright with the opening of the VB editor, then right
clicked 'this workbook' - do i then typr in sub insert etc.. in the blank box
that opened - sorry if I seem thick, but i'm sure i didn't do this last time.
Thanks again.
Helen

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Right click 'This Workbook' and insert module and
paste this in on the right

Sub insert()
Selection.EntireRow.insert
End Sub

Back on the worksheet:
Tools|Macro|Macros
From the dropdown select 'This Workbook' and highlight the macro name
Click 'Options'
Enter a letter to call your macro

Back on the worksheet CTRL+(Letter) will insert an entirerow.

Mike

"cravingmad" wrote:

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How do I set up a key to insert rows in excel?

Thank you so much for your help, I've done it!!
Helen.

"Mike H" wrote:

Hi,

In the empty box on the right simply paste the 3 lines of code I gave you
which include the Sub & end sub bit

I forgot to mention on my past post you can pick a number to run your macro
as well as a lettter.

Mike

"cravingmad" wrote:

Hi, I'm sorry I was alright with the opening of the VB editor, then right
clicked 'this workbook' - do i then typr in sub insert etc.. in the blank box
that opened - sorry if I seem thick, but i'm sure i didn't do this last time.
Thanks again.
Helen

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Right click 'This Workbook' and insert module and
paste this in on the right

Sub insert()
Selection.EntireRow.insert
End Sub

Back on the worksheet:
Tools|Macro|Macros
From the dropdown select 'This Workbook' and highlight the macro name
Click 'Options'
Enter a letter to call your macro

Back on the worksheet CTRL+(Letter) will insert an entirerow.

Mike

"cravingmad" wrote:

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I set up a key to insert rows in excel?

I'm glad you done it and that i could help you along

"cravingmad" wrote:

Thank you so much for your help, I've done it!!
Helen.

"Mike H" wrote:

Hi,

In the empty box on the right simply paste the 3 lines of code I gave you
which include the Sub & end sub bit

I forgot to mention on my past post you can pick a number to run your macro
as well as a lettter.

Mike

"cravingmad" wrote:

Hi, I'm sorry I was alright with the opening of the VB editor, then right
clicked 'this workbook' - do i then typr in sub insert etc.. in the blank box
that opened - sorry if I seem thick, but i'm sure i didn't do this last time.
Thanks again.
Helen

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Right click 'This Workbook' and insert module and
paste this in on the right

Sub insert()
Selection.EntireRow.insert
End Sub

Back on the worksheet:
Tools|Macro|Macros
From the dropdown select 'This Workbook' and highlight the macro name
Click 'Options'
Enter a letter to call your macro

Back on the worksheet CTRL+(Letter) will insert an entirerow.

Mike

"cravingmad" wrote:

Ages ago I set up a function (ctrl + 2 I think) so I could easily add a row
into an excel sheet without right clicking loads of times - unfortunatly I
need to do it again on another pc and can't remember how to do it - can
anyone help please - thank you.
Helen.

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
How can I insert a blank row after every four rows in Excel? EmmaSB Excel Discussion (Misc queries) 2 April 20th 07 10:10 PM
Excel Macro to insert rows Dhawal Excel Discussion (Misc queries) 3 October 2nd 06 01:16 AM
How can I set excel to automatically insert rows Tima Excel Worksheet Functions 9 August 13th 06 05:19 PM
how do you have rows automatically insert in excel? Shelvonne Excel Worksheet Functions 0 November 10th 05 12:37 AM
how to auto insert rows in Excel TanyaG Excel Discussion (Misc queries) 2 July 4th 05 07:58 PM


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