Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Size Matters - minimizing file size

I have a worbook containing several macros and lots of formulas that
has grown to big. The only way to trim the file size down is to delete
rows containing formulas that are as of yet unused but will be as more
data is entered. These cells will eventually be required to carry out
calculations on cells populated by the user. I.e columns A-C are text
id's, D:AG is data entered by the user and AH:CT is formulas that
manipulate the data with a corresponding outcome in column CU that is
acted on by a macro.

Is the best thing to have a workbook macro that copies the formula in
columns AH:CT when the user inputs text in column B? Does anyone know
a simple way to implement this?

Any help gratefully appreciated

Regards
Jamie

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Size Matters - minimizing file size

Hi Jamie,

Something like this should work:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Columns(2), Target.EntireColumn) Is Nothing Then
Range("AH2:CT2").Copy Intersect(Target.EntireRow, Range("AH:CT"))
End If
End Sub

This assumes that the formulas can be found at AH2:CT2. If you need a larger
range to trigger the formula copy, replace Columns(2) with e.g. Range("A:C").

Hope this helps

Steve


wrote:
I have a worbook containing several macros and lots of formulas that
has grown to big. The only way to trim the file size down is to delete
rows containing formulas that are as of yet unused but will be as more
data is entered. These cells will eventually be required to carry out
calculations on cells populated by the user. I.e columns A-C are text
id's, D:AG is data entered by the user and AH:CT is formulas that
manipulate the data with a corresponding outcome in column CU that is
acted on by a macro.

Is the best thing to have a workbook macro that copies the formula in
columns AH:CT when the user inputs text in column B? Does anyone know
a simple way to implement this?

Any help gratefully appreciated

Regards
Jamie

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
Staus Bar - Size Matters Teddy-B Excel Discussion (Misc queries) 2 March 25th 10 04:19 PM
File Size With Macros Has Increased From Its Origina Size Fred Excel Discussion (Misc queries) 1 April 26th 08 12:24 AM
size matters : ) tatty Excel Discussion (Misc queries) 2 July 23rd 07 05:07 PM
Tips for Minimizing size of Pivot Table workbooks shadestreet Excel Discussion (Misc queries) 1 April 19th 06 09:26 PM
How to get the size of the excel file, a sheet size (in bytes)? bookworm98[_13_] Excel Programming 1 January 28th 04 02:59 PM


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