LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting rows from a command button

Hi all

I'd like users to be able to insert rows into my protected workshee
witghout having to unprotect it first.

Therefore I've got a command button on the sheet and I'd like it t
when clicked:

1. unprotect the sheet using my password "jon"
2. insert rows for me (I've already asked the user to select the row
he's like to have inserted, i.e. selected using the row numbers on th
left of the screen. For example if they want to insert a copy of row
through 7 below row 7 then they have selected rows 4-7 and they hav
turned black)
3. protect the sheet again using my password "jon"

I've got the following so far, but don't know what to put in the middl
to make the INSERT ROWS bit happen.

CommandButton1.TakeFocusOnClick = False
ActiveSheet.Unprotect Password:="jon"
--WHAT DO I PUT IN HERE??--
ActiveSheet.Protect Password:="jon"

Any ideas?? Many thanks in advance for your help

Jo

--
Message posted from http://www.ExcelForum.com

 
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
Inserting a Graphic on a Button when the Button is Assigned to a M smck Excel Discussion (Misc queries) 2 October 27th 09 04:46 PM
Collapsing rows via command button Stephanie Excel Discussion (Misc queries) 2 August 11th 09 05:45 PM
copy the command button and macro for multiple rows bigproblem Excel Discussion (Misc queries) 6 April 5th 09 09:46 PM
Command Button to Hide/Unhide Rows Bea Excel Discussion (Misc queries) 4 March 16th 06 03:21 PM
Inserting a Face ID onto a Command button Denny Behnfeldt Excel Programming 5 February 12th 04 01:59 PM


All times are GMT +1. The time now is 12:04 AM.

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"