Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert Row & copy all formulas - shared workbook

Hi,
I have a workbook that is being shared. How can I have the user
insert a new row and keep all of the formulas that are being used. Th
INSERT command will put in a row, but no formulas. I would also lik
this row insert in row 3 (which is the actual first row where the dat
begins).

Help.
Jef

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Insert Row & copy all formulas - shared workbook


it's basic.. but it works for me.
(not tested in shared)



Sub InsertPrep()
Selection.Rows(1).EntireRow.Insert
With Selection.EntireRow
.FillDown
On Error Resume Next
If Not IsError(.SpecialCells(xlConstants)) Then
.SpecialCells(xlConstants).Clear
End If
On Error GoTo 0
End With
End Sub



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


Eager2Learn wrote:

Hi,
I have a workbook that is being shared. How can I have the users
insert a new row and keep all of the formulas that are being used.
The INSERT command will put in a row, but no formulas. I would also
like this row insert in row 3 (which is the actual first row where the
data begins).

Help.
Jeff


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



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
How to copy a spreadsheet in shared workbook Kathie Excel Worksheet Functions 3 November 12th 09 02:05 AM
Shared Workbook-Formulas constantly resetting to manual Raewyn Excel Discussion (Misc queries) 3 September 30th 09 06:35 PM
Cannot copy or move array entered formulas ... shared workbk JimDerDog Excel Worksheet Functions 0 May 26th 05 04:17 PM
can't insert row in shared workbook Mickey Excel Worksheet Functions 0 January 26th 05 09:53 PM
Shared Workbook - insert row and keep validation & format? miker1999[_5_] Excel Programming 0 February 4th 04 04:18 AM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"