Results 1 to 3 of 3

Managing Formulas in Excel database

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003, 2010
    Posts
    151

    Managing Formulas in Excel database

    Greetings Everyone,

    I have a workbook where production values are entered for different production lines daily. The database is set up to insert a new blank line just beneath the header row with formulas to make some calculations on the production values when entered. The sheet has grown to be 72 columns wide and currently about 4,900 rows deep and there are about 40 formulas per line giving me a total number of formulas of about 196,000 and this number grows each day as production is entered. This number of calculations is slowing down the line insertion macro to the point it takes nearly 8.5 seconds to insert a row using the macro:

    Sub Production_Analysis26()
    
    Dim StartTime As Double
    Dim EndTime As Double
    Dim RunTime As Double
    Dim LCol As Long
    Dim rConstants As Range
    
        StartTime = Timer
    
        Sheets("Variance Register").Select
        Application.ScreenUpdating = False
        Application.DisplayAlerts = False
        
        LCol = Cells(5, Columns.Count).End(xlToLeft).Column
        Set rConstants = Cells(6, 1).Resize(1, LCol).SpecialCells(xlCellTypeConstants)
    
        Cells(7, 1).Resize(1, LCol).Insert shift:=xlDown
        Cells(6, 1).Resize(1, LCol).Copy Range("A7")
        rConstants.ClearContents
        
        Application.ScreenUpdating = True
        Application.DisplayAlerts = True
    
        EndTime = Timer
        RunTime = EndTime - StartTime
        MsgBox "Macro completed in " & RunTime & " Seconds"
    
    End Sub
    What I am wanting to accomplish is to pick an arbitrary length of time, say 90 days, to keep the formulas intact then just do a copy pastevalue to convert the formulas to constants but I am at a loss as to how to do this without looping through the entire sheet to evaluate the dates.

    I would appreciate any help or suggestions!

    Thanks
    Last edited by jacob@thepenpoint; 07-01-2014 at 02:39 PM.
    Jacob Albers
    Excel 2003 & 2010

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Managing Data on excel
    By S2000 in forum Excel General
    Replies: 17
    Last Post: 03-29-2014, 05:41 PM
  2. Managing my chart and database
    By DavidRoger in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-27-2013, 08:08 AM
  3. Managing an excel "Master" database/workbook
    By sid9221 in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 03:51 AM
  4. Managing Excel from VB^
    By Uwe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2006, 02:45 PM
  5. Managing an Access Database from Excel
    By Kostis Vezeridis in forum Excel General
    Replies: 2
    Last Post: 02-11-2005, 03:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1