Inserting row, bolding

JohnGiacon

New Member
Joined
Mar 25, 2025
Messages
10
Office Version
  1. 365
Platform
  1. MacOS
Hi, I would like to insert a blank row when the content of columnA changes, and bold the first cell after the blank row.
The current form is:
FMPTransfer6NotesWork.xlsm
ABCD
2giwiirr_GR1Headword: PoS: noun ; Senses: 1. Aboriginal $man
3giwiirr_GR1 CommentLinguistic: This word has been largely replaced by ‘mari’ (Aboriginal man, Aboriginal person).
4giwiirr_GR1 Source: Austin, P - 1993a:14 giwiirr (giwiirr) Aboriginal man *recon (from written sources only)
5giwiirr_GR1 Source: Mathews, R.H. - 1903:275 giwiR (giwir) “a man”
6giwiirr_GR1 Source: Ridley, W - 1875:18 giwiiR (giwir) man
7giwiirr_GR1 Source: Thompson, P. - 1977 giwi/irr (kiwirr) man
8giwiirr_GR1 Source: Giacon, John - giwirr …. by ‘mari’ in current use.
9giwiirr_GR1 Note: YY: diamond, gubadhu go with this; AA 13/9/2001
10mari_GR2Headword: PoS: noun ; Senses: 1. Aboriginal $person; 2. Aboriginal $man
11mari_GR2 CommentLinguistic: Widely used in Aboriginal English. English spelling ‘murri’. Pronounced ‘mardi’ by some (with the tongue curled back).
12mari_GR2 Source: Austin, P - 1993a:18 mari (mari) Aboriginal person, man cf. web dictionary
13mari_GR2 Source: Mathews, R.H. - 1903:275 mari (murri) “man collectively”, “a man”
14mari_GR2 Source: Milson, Mrs. - 1840:3 mari (murree) blackmen; Milson also has thyne, dhayin
15mari_GR2 Source: Holmer, Nils - (mar5i)
16mari_GR2 Source: Ridley, W - 1875:18 mari (murri) Australian aboriginal
17mari_GR2 Note: YR-TF also has marriga; AA 31/10/2001 \PACW: CW PoS: NDef: car, cart
18wun.guwi_YR3Headword: PoS: noun ; Senses: 1. Adam’s apple, throat
19wun.guwi_YR3 Source: Williams, CW - 1980:140 wunguwi (wunguwi) adam's apple
20wun.guwi_YR3 Source: Sands, Ernie - tape wun.guwi (wun.guwi ) es - wun.guwi - adam's apple
Sheet1


The desired form is:
FMPTransfer6NotesWork.xlsm
ABCD
2
3giwiirr_GR1Headword: PoS: noun ; Senses: 1. Aboriginal $man
4giwiirr_GR1 CommentLinguistic: This word has been largely replaced by ‘mari’ (Aboriginal man, Aboriginal person).
5giwiirr_GR1 Source: Austin, P - 1993a:14 giwiirr (giwiirr) Aboriginal man *recon (from written sources only)
6giwiirr_GR1 Source: Mathews, R.H. - 1903:275 giwiR (giwir) “a man”
7giwiirr_GR1 Source: Ridley, W - 1875:18 giwiiR (giwir) man
8giwiirr_GR1 Source: Thompson, P. - 1977 giwi/irr (kiwirr) man
9giwiirr_GR1 Source: Giacon, John - giwirr …. by ‘mari’ in current use.
10giwiirr_GR1 Note: YY: diamond, gubadhu go with this; AA 13/9/2001
11
12mari_GR2Headword: PoS: noun ; Senses: 1. Aboriginal $person; 2. Aboriginal $man
13mari_GR2 CommentLinguistic: Widely used in Aboriginal English. English spelling ‘murri’. Pronounced ‘mardi’ by some (with the tongue curled back).
14mari_GR2 Source: Austin, P - 1993a:18 mari (mari) Aboriginal person, man cf. web dictionary
15mari_GR2 Source: Mathews, R.H. - 1903:275 mari (murri) “man collectively”, “a man”
16mari_GR2 Source: Milson, Mrs. - 1840:3 mari (murree) blackmen; Milson also has thyne, dhayin
17mari_GR2 Source: Holmer, Nils - (mar5i)
18mari_GR2 Source: Ridley, W - 1875:18 mari (murri) Australian aboriginal
19mari_GR2 Note: YR-TF also has marriga; AA 31/10/2001 \PACW: CW PoS: NDef: car, cart
20
21wun.guwi_YR3Headword: PoS: noun ; Senses: 1. Adam’s apple, throat
22wun.guwi_YR3 Source: Williams, CW - 1980:140 wunguwi (wunguwi) adam's apple
23wun.guwi_YR3 Source: Sands, Ernie - tape wun.guwi (wun.guwi ) es - wun.guwi - adam's apple
24wun.guwi_YR3 Note: yilaa main entry; yilaal variant go with this AA ASL 13/11/2001; 3/4/2002 \PACW: CW, PA PoS: AdvDef: soon, directly
Sheet1
 
Try it
VBA Code:
Sub test()
Dim i As Long, lastRow As Long
    Application.ScreenUpdating = False
    With Worksheets("Sheet1")               '  Change "Sheet1" to the proper name
        lastRow = .Range("A" & Rows.Count).End(xlUp).Row
        If lastRow = 1 Then Exit Sub
        i = lastRow
        For i = lastRow - 1 To 1 Step -1
            If .Range("A" & i).Value <> .Range("A" & i + 1).Value Then
                .Range("A" & i + 1).Font.Bold = True
                .Range("A" & i + 1).EntireRow.Insert xlDown, xlFormatFromLeftOrAbove
            End If
        Next i
    End With
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Solution

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top