Unexperienced VBA user, trying to create a Repo Schedule for use at my office

belowram

New Member
Joined
Jun 6, 2024
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Trying to create an excel workbook with 1 input sheet, and 1 schedule sheet.

Input sheet:
1717659678381.png

I would like the info i input into the white cells be moved to corresponding cells in the Schedule sheet.

Cell C3 from the input sheet moved to cell Q4 in the schedule sheet.
Cell C7 from the input sheet -> cell C4 in the schedule sheet.
Cell C9 from the input sheet -> cell D4 in the schedule sheet.
Cell C11 from the input sheet -> cell F4 in the schedule sheet.
Cell C13 from the input sheet -> cell G4 in the schedule sheet.
Cell E3 from the input sheet ->cell B4 in the schedule sheet.
Cell F5 from the input sheet -> cell M4 in the schedule sheet.
Cell F7 from the input sheet -> cell N4 in the schedule sheet.
Cell F9 from the input sheet -> cell L4 in the schedule sheet.
Cell F11 from the input sheet -> cell U4 in the schedule sheet.
Cell F13 from the input sheet-> cell V4 in the schedule sheet.

However, the problem I am facing with my VBA code is that when the data is moved to the schedule sheet, all the values in row 4 are being moved down a row to row 5.
But as in the mini sheet below, I have equations linked to the cells that are not mentioned above, so I would be best if only the cells mentioned above are moved down a row in the Schdule sheet.
Would this be possible at all?
If not, i have no idea what would be the best method to create such a system.
Any help would be much appreciated.
Thanks guys



schedule sheet:

Repo Schedule_test1.xlsx.xlsm
BCDEFGHIJKLMNOPQRSTUVWXYZAAABAC
2#TermsCollateralCounterpartyFXP&L
3Serial No.Initiation DateMaturityDaysRP RateHaircut(%)Repo AmountOpen/TermDays RemainingCollateral PoolISINCollateral AmountCollateral RatePriceFace ValueCounterpartyDepositoryEC/CSAccount No.FXFX Rate (Book)FX Rate(Spot)Face Value(FX)FX P&LInterest PaidInterest ReceivedTotal P&L(USD)Total P&L(FX)
4
5#REF!7/4/20248/4/2024315.50%5%38,000,000.00Term59BBG40,000,000.005.80%bbg#VALUE!
6     
7     
schedule
Cell Formulas
RangeFormula
H5:H7H5=IF((M5*(1-G5))>0,(M5*(1-G5)),"")
I5:I7I5=IF((D5=""),"",IF(D5=0,"Open","Term"))
J5:J7J5=IF((D5-TODAY())>0, (D5-TODAY()),"")
P5P5=M5*O5
B5:B6B5=IF(C5>0,("REPO"&MOD(YEAR(C5),100)&TEXT(MONTH(C5),"00")&TEXT(DAY(C5),"00")&TEXT((#REF!),"000")),"")
B7B7=IF(C7>0,("REPO"&MOD(YEAR(C7),100)&TEXT(MONTH(C7),"00")&TEXT(DAY(C7),"00")&TEXT((AE5),"000")),"")
E5:E7E5=IF((D5-C5)>0,(D5-C5),"")
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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