Trying to write a code to insert a blank row above a cell value
Solved/Closed
Kwanni
Posts
2
Registration date
Monday 24 June 2013
Status
Member
Last seen
26 June 2013
-
24 Jun 2013 à 13:06
Ambucias Posts 47312 Registration date Monday 1 February 2010 Status Moderator Last seen 28 March 2026 - 26 Jun 2013 à 16:54
Ambucias Posts 47312 Registration date Monday 1 February 2010 Status Moderator Last seen 28 March 2026 - 26 Jun 2013 à 16:54
Related:
- Trying to write a code to insert a blank row above a cell value
- How to write ' on keyboard - Guide
- How to delete a row in word - Guide
- Where is the insert key on a laptop - Guide
- Saints row 2 cheats - Guide
- How to insert a checkmark in word - Guide
3 responses
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
26 Jun 2013 à 02:28
26 Jun 2013 à 02:28
when you entere numbers without unnecessary space before or after the number
then run this macro
then run this macro
Sub test()
Dim r As Range, cfind As Range, add As String
Worksheets("sheet1").Cells.Clear
Worksheets("sheet2").Cells.Copy Worksheets("sheet1").Range("A1")
Worksheets("sheet1").Activate
Dim j As Integer, k As Integer
j = Range("A1").End(xlDown).Row
For k = j To 1 Step -1
If Cells(k, 1) = 999 Then Cells(k, 1).EntireRow.Insert
Next k
End Sub
Ambucias
Posts
47312
Registration date
Monday 1 February 2010
Status
Moderator
Last seen
28 March 2026
11,166
26 Jun 2013 à 16:54
26 Jun 2013 à 16:54
Venkat is our home genius!
Kwanni
Posts
2
Registration date
Monday 24 June 2013
Status
Member
Last seen
26 June 2013
26 Jun 2013 à 12:57
26 Jun 2013 à 12:57
Thank you so much for taking the time to help me.
Saved me hours of work.
Saved me hours of work.