View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default How to put values instead of formulas into matrix?

One approach:

1. store the spreadsheet without formulae
2. have a macro paste the formulae into the appropriate columns and convert
to values.
3. before storing the updated worksheet even the calculated values can be
cleared since the will be re-created at the next update
--
Gary's Student


"Gijs Breedveld" wrote:

Hi, I am trying to reduce the size om my large file. Therefor I want to use a
macro to put values instead of formulas into a matrix.

The datafile is pulled from a database and looks as follows:
Col A : "Date in"
Col B : "Person"
Col C : "Date start"
Col D: "Date end"

I want to calculate
Col E: "week start"
Col D: "week end"
Col F: "Week start" - "week in"

The amount of lines increases each week by an unknown amount. Therefor the
code needs to look how many lines are added. Also the "date start" and "date
end" do change for existing records. Therefor all the lines need to be
recalculated every time.

I have been searching the files and putting pieces of code together but
nothing gave the wanted end result.

I hope someone can help me.

Best regards,

Gijs Breedveld