HELP! copying ranges before update vba

akshatk1991

New Member
Joined
May 6, 2013
Messages
13
Hey,

I have a 25 row table stretching into many columns arranging monthly data from 2008 to 2015. Now from march 2013 onwards, i have the following formula, which updates the value if its an actual value, or uses a formula to forecast.

I want to copy these entire range of columns to another sheet, before they are updated, so as to compare the actual value versus what i had predicted for it. Is there a way to do this via vba, i am basically looking for a code which will copy the value's based on a condition so as to copy the data before updating

=IF(((INDEX(Reuters_Gasoline!$A$4:$H$108,MATCH(Gasoline_Balance!BO$6,Reuters_Gasoline!$A$4:$A$156,0),MATCH(Gasoline_Balance!$B$13,Reuters_Gasoline!$A$4:$H$4,0=0,BO12*BO11,((INDEX(Reuters_Gasoline!$A$4:$H$108,MATCH(Gasoline_Balance!BO$6,Reuters_Gasoline!$A$4:$A$156,0),MATCH(Gasoline_Balance!$B$13,Reuters_Gasoline!$A$4:$H$4,0

So far, i have started with this
Sub Copy_FC()
Sheets("Gasoline_Balance").Range("B6:B25").Copy
Sheets("Delta").Range("A1").PasteSpecial _
Paste:=xlPasteValues
End Sub


Any help towards a solution will be greatly appreciated! thanks!
 

Forum statistics

Threads
1,082,143
Messages
5,363,378
Members
400,732
Latest member
robcooper2001

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top