LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
RKS RKS is offline
external usenet poster
 
Posts: 63
Default Insert Row with formula

Hi All,
I have protected excel sheet which have many column and row. I can
distribute to user
and uer can fill data. after some time, some data are useless so user want
delete and
insert new row (with formula). i can hide all formula which i can use in
this excel sheet.

I can use micro for insert line, so user can insert. but problem is that
when line inset its blank
and no formula is coping which i can use previous column and row. I want
when Insert row its insert with all formula.
please help me.

micro which i can use:

Private Sub Workbook_Open()
Application.OnKey "+{INSERT}", "ThisWorkbook. InsSelectedRow"
End Sub

Sub InsSelectedRow()
With Worksheets("T&A")
If Selection.Parent.Name = .Name Then
'check to make sure a row is selected
If Selection.Rows.Count = 1 And Selection.Cells.Count = 256 Then
.Unprotect Password:="xxx"
Selection.Insert
.Protect Password:="xxx"
End If
End If
End With
End Sub

RKS

 
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
insert formula [email protected] Excel Worksheet Functions 0 May 17th 06 12:45 PM
Insert a value into formula Ed Excel Discussion (Misc queries) 5 April 16th 06 06:25 AM
How to insert a formula..but... junkmandan Excel Discussion (Misc queries) 6 January 26th 06 08:17 PM
How to insert = in formula bar Tirtha Raj Adhikari Excel Discussion (Misc queries) 1 September 14th 05 09:02 AM
insert a new row by formula Doug Excel Worksheet Functions 3 November 18th 04 12:28 PM


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