Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Button on Form to Add more rows

I have a form that I have created in excel and in one section of that form, I
want to be able to add a button that will add 5 more rows for that specific
section. The form is protected as there is some pretty heavy formulas and
direct links to databases that update info for the form, so of course users
cannot add rows themselves - is there a way to add a button that will allow
users to add more rows to the form?
--
Susan M.
Project Controls Data Coordinator
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Button on Form to Add more rows

Susan
Paste this macro into a standard module, then create the button you want
and assign this macro to that button. This macro will unprotect the sheet,
insert the new blank rows, and protect the sheet. Change the row numbers to
fit with your form. Post back if you need more. HTH Otto
Sub InsertRows()
ActiveSheet.Unprotect Password:="Susan"
Rows("12:14").Insert Shift:=xlDown
ActiveSheet.Protect Password:="Susan"
End Sub

"SaM" wrote in message
...
I have a form that I have created in excel and in one section of that
form, I
want to be able to add a button that will add 5 more rows for that
specific
section. The form is protected as there is some pretty heavy formulas and
direct links to databases that update info for the form, so of course
users
cannot add rows themselves - is there a way to add a button that will
allow
users to add more rows to the form?
--
Susan M.
Project Controls Data Coordinator


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
Button in Form Control SJL New Users to Excel 1 December 30th 09 09:30 PM
Form button - 2007 oldLearner57 Excel Discussion (Misc queries) 4 August 11th 07 01:46 PM
Form button Thor Excel Discussion (Misc queries) 1 May 5th 07 09:37 PM
Form Button not active YanYan Excel Discussion (Misc queries) 0 August 17th 06 03:17 AM
Form with submit button Hooter Excel Worksheet Functions 0 June 8th 05 07:12 PM


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