Hello
(1) In the attached excel in Sheet 1
In the below macro and attached excel macro file i need a simple change. 100 numeric input should be maximum value of column A:A. This is because everytime inside VBA code i need to change this per populated date. Instead if the macro automatically sense the maximum value of column A:A then without touching macro code i can control in the excel sheet itself.
Something like this required.
(2) In the attached excel in Sheet 2
The attached excel file macro is capable of copy the cell content E124 to G124.
But the requirement is need to copy the cell contents from L2 to G2 and need to format by macro.
From L2 to G2 need to go upto LN to GN where N is the maximum value in Column A:A.
![]()
For i = 1 To j Range("A:A).Maximumvlaue = jThanks in advance![]()
Sub copy_values() Dim rowH, rowG rowH = 2 rowG = 2 For i = 1 To 100 Range("D106").Value = i Range("G" & rowG).Value = Range("D114").Value Range("H" & rowH).Value = Range("E124").Value rowH = rowH + 1 rowG = rowG + 1 Next i End Sub
Sekar











LinkBack URL
About LinkBacks
Register To Reply
Bookmarks