ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA Code/Formula to generate list of rows (https://www.excelbanter.com/excel-programming/401300-vba-code-formula-generate-list-rows.html)

WINS

VBA Code/Formula to generate list of rows
 
Hi everyone,

I need to define a loan repayment schedule using PMT, IPMT and PPMT
functions which i fully understand. However, based on the number of
installments I need to define the corresponding number rows with the
sequential numbers.

Can anyone help me on his issue

John

VBA Code/Formula to generate list of rows
 
Have a look at this site:
http://www.vertex42.com/ExcelTemplat...alculator.html
--
JB


"WINS" wrote:

Hi everyone,

I need to define a loan repayment schedule using PMT, IPMT and PPMT
functions which i fully understand. However, based on the number of
installments I need to define the corresponding number rows with the
sequential numbers.

Can anyone help me on his issue


JLGWhiz

VBA Code/Formula to generate list of rows
 
I am not sure exactly what you are looking for, but you can modifiy this code
to enumerate the rows in Column A. This sample only fills 20 rows but if you
know how many lines you will need you simply change the cell A20 to a lesser
or greater number, of if you want to use a different column, change the A to
another letter.
You can also change the sheet name or index to suit.

Sub mbrfill()
Range("A1") = 1
Range("A2") = 2
Set SourceRange = Worksheets("Sheet1").Range("A1:A2")
Set fillRange = Worksheets("Sheet1").Range("A1:A20")
SourceRange.AutoFill Destination:=fillRange
End Sub


"WINS" wrote:

Hi everyone,

I need to define a loan repayment schedule using PMT, IPMT and PPMT
functions which i fully understand. However, based on the number of
installments I need to define the corresponding number rows with the
sequential numbers.

Can anyone help me on his issue



All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com