Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a protected worksheet.
How can I insert a Row based on the location of the cursor using a Macro? Need the location of the Row based on the location of the cursor. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Something like...
Option Explicit Sub testme() Dim myPWD As String myPWD = "hi" ActiveSheet.Unprotect Password:=myPWD ActiveCell.Offset(1, 0).Insert ActiveSheet.Protect Password:=myPWD End Sub (this inserts a row under the activecell. remove .offset(1,0) if you want it above the activecell.) If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm Dennis wrote: I have a protected worksheet. How can I insert a Row based on the location of the cursor using a Macro? Need the location of the Row based on the location of the cursor. Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mouse pointer becomes hyperlink when sheet protected | Excel Discussion (Misc queries) | |||
HELP: Mouse Pointer Changes When Sheet Protected | Excel Discussion (Misc queries) | |||
Stock Location Sorting Problem | Excel Discussion (Misc queries) | |||
Track Mouse Location In a Sheet VBA | Excel Discussion (Misc queries) | |||
Mouse continues to select after clicking on a cell in excel. | Excel Discussion (Misc queries) |