Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I would like to create a macro to insert a blank rows at every change in a column. I also want to give the input box option to select the column. Thanks for the help!! Regards, Karthik |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub addcol()
ColmLetter = InputBox("Enter column Letter : ") Lastrow = Cells(Rows.Count, ColmLetter).End(xlUp).Row For RowCount = Lastrow To 2 Step -1 If Range(ColmLetter & RowCount) < _ Range(ColmLetter & (RowCount - 1)) Then Rows(RowCount).Insert End If Next RowCount End Sub "Karthik" wrote: Hi All, I would like to create a macro to insert a blank rows at every change in a column. I also want to give the input box option to select the column. Thanks for the help!! Regards, Karthik |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert blank row after change in cell value not working. | Excel Discussion (Misc queries) | |||
Insert a blank row after change in data | Excel Worksheet Functions | |||
insert a blank column between each column in a data file | Excel Discussion (Misc queries) | |||
Insert a blank row after change in data | Excel Worksheet Functions | |||
insert blank line at change of year | Excel Programming |