VBA For New Column, moving right, saving previous value

bmpreston

Board Regular
Joined
Jun 18, 2016
Messages
120
Office Version
  1. 365
Platform
  1. MacOS
So this I believe is difficult. Difficult just to explain.

I'm looking to take a column and make each cell equal to values from throughout the workbook. (C1=worksheet.B1) etc...

Then this file will be saved, next week, the sheet is reopened and I want to copy the formulas to a new column... Column D, and it grabs new values of (D1=worksheet.B1)....

Each week the column moves and new values are saved in the corresponding column.

Add a column, grab values, save values permanently, then run it again, and it adds a column, gets the new values, saves them permanently.

Currently, I have two separate spreadsheets. I update the values, save as a unique sheet, then open the sheet which contains the below... I then copy and paste to the right, and edit the file name slightly to point to the new permanently saved file previously updated and saved.

Thanks in advance. I hope this can be done.

Initial Values
DATE of WEEK ONE
BobVALUE FROM WORKSHEET AS EQUALS FORMULA (WorksheetName.H4)
SueVALUE FROM WORKSHEET AS EQUALS FORMULA (DifferentWorksheetName.H4)
GeorgeVALUE FROM WORKSHEET AS EQUALS FORMULA (CompletelyDifferentWorksheetName.H4)

<tbody>
</tbody>

First Time Macro Runs
DATE OF WEEK ONEDATE of WEEK Two (=B1+7)
BobVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULA
SueVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULA
GeorgeVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULA

<tbody>
</tbody>

Second Time Macro Runs
DATE OF WEEK ONEDATE of WEEK Two (=B1+7)DATE OF WEEK Three (C1+7)
BobVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULANEWEST VALUE OF WORKSHEET FORMULA
SueVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULANEWEST VALUE OF WORKSHEET FORMULA
GeorgeVALUE OF WORKSHEET AS EQUALS FORMULANEW VALUE OF WORKSHEET FORMULA

NEWEST VALUE OF WORKSHEET FORMULA

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 576px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
NEWEST VALUE OF WORKSHEET FORMULA

<tbody>
</tbody>
</body>
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top