excel - 6 months rolling data set to be created in vba -
so shown in image current month data populated using simple reference code i've pasted below. 1 sheet active sheet , other sheet reference sheet 2 has data of employee pf contribution, etc. 6 months i've shown static , want dynamic when run reports sep-17
- mar-17 deleted
- 6 months starting apr-17 upto sep-17
![1]](https://i.stack.imgur.com/rv1am.jpg)
so lets have payslip - i'm planning show 6 month rolling data on employee pf contribution , employer pf contribution. being first month i'm getting such data current month last column , 5 months prior show blank currently.
getting current month data populated using simple reference code of
trwb.activesheet.cells(pfrow + 8, "j").value = srwb.activesheet.cells(t,"x").value & if had previous data have used reference want dynamic - sept-17 headers in column g14 sep-17 go upto column b14 apr-17 , data in rows below.
next month when oct-17 g14 should show oct-17 , sep-17 moved column before , apr-17 deleted.
i'm not pro on vba confused on how range dynamic. suggestions on appreciated.
Comments
Post a Comment