Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I insert a blank row after every four rows in Excel? | Excel Discussion (Misc queries) | |||
Excel Macro to insert rows | Excel Discussion (Misc queries) | |||
How can I set excel to automatically insert rows | Excel Worksheet Functions | |||
how do you have rows automatically insert in excel? | Excel Worksheet Functions | |||
how to auto insert rows in Excel | Excel Discussion (Misc queries) |