Saturday, September 1, 2012

How to Insert Desired No.of Cells in Excel with VBA

VBA Macro to Insert Desired No.of Cells in Excel
Sub Inscells()
Dim i As Integer
Dim j As Integer

ActiveCell.Select

i = InputBox("Enter The Desired No.of Cells To Insert ")

For j = 1 To i
Selection.Cells.Insert
Next j
End Sub

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. If you wish, please share your genuine Feedback or comments only related to this Blog Posts. It is my humble request that, please do not post any Spam comments or Advertising kind of comments, which will be Ignored.

Featured Post from this Blog

How to compare Current Snapshot Data with Previous Snapshot in Power BI

How to Dynamically compare two Snapshots Data in Power BI Scenario: Suppose we have a sample Sales data, which is stored with Monthly Snapsh...

Popular Posts from this Blog