Skip i'r prif gynnwys

Sut i restru'r holl sylwadau i daflen waith neu lyfr gwaith newydd yn Excel?

Os oes gennych lyfr gwaith gyda gormod o sylwadau ynddo, a'ch bod am restru'r holl sylwadau i daflen waith neu lyfr gwaith newydd ar gyfer adolygu'r holl sylwadau, sut allwch chi wneud? Gall y dulliau canlynol eich helpu i restru holl sylwadau taflen waith / llyfr gwaith yn gyflym i daflen waith neu lyfr gwaith newydd yn Excel.

Rhestrwch yr holl sylwadau i daflen waith newydd gyda chod VBA

Rhestrwch yr holl sylwadau i daflen waith neu lyfr gwaith newydd gyda Kutools ar gyfer Excel


swigen dde glas saeth Rhestrwch yr holl sylwadau i daflen waith newydd gyda chod VBA

Bydd y cod VBA canlynol yn rhestru'r holl sylwadau i daflen waith newydd yn y llyfr gwaith cyfredol. Yn y daflen waith newydd, bydd yn rhestru holl sylwadau'r llyfr gwaith cyfan mewn rhestr gydag enw'r ddalen, cyfeiriad y gell, cynnwys y sylwadau ac enw'r gell. Defnyddiwch y dull hwn fel a ganlyn:

1. Cliciwch Datblygwr > Visual Basic, mae'n arddangos y Microsoft Visual Basic ar gyfer cymwysiadau ffenestr. A chlicio Mewnosod > Modiwlau, ac yna mewnbynnu'r codau VBA canlynol yn y Modiwl.

VBA: yn rhestru'r holl sylwadau mewn taflen waith newydd.

Sub ShowCommentsAllSheets()
'Update 20140508
Dim commrange As Range
Dim rng As Range
Dim ws As Worksheet
Dim newWs As Worksheet
Set newWs = Application.Worksheets.Add
newWs.Range("A1").Resize(1, 4).Value = Array("Sheet", "Address", "Value", "Comment")
Application.ScreenUpdating = False
On Error Resume Next
For Each ws In Application.ActiveWorkbook.Worksheets
    Set commrange = ws.Cells.SpecialCells(xlCellTypeComments)
    If Not commrange Is Nothing Then
        i = newWs.Cells(Rows.Count, 1).End(xlUp).Row
        For Each rng In commrange
            i = i + 1
            newWs.Cells(i, 1).Resize(1, 4).Value = Array(ws.Name, rng.Address, rng.Value, rng.Comment.Text)
        Next
    End If
    Set commrange = Nothing
Next
newWs.Cells.WrapText = False
Application.ScreenUpdating = True
End Sub

2. Yna cliciwch doc-rhestr-sylwadau-1 botwm i redeg y cod, a byddwch yn cael taflen waith newydd gyda'r holl sylwadau yn y llyfr gwaith cyfredol. Gweler y screenshot:

doc-rhestr-sylwadau-2


swigen dde glas saeth Rhestrwch yr holl sylwadau i daflen waith neu lyfr gwaith newydd gydag un clic

Efo'r Creu Rhestr Sylwadau of Kutools ar gyfer Excel, gallwch chi restru'r holl sylwadau yn gyflym i daflen waith newydd neu lyfr gwaith newydd.

Kutools ar gyfer Excel: gyda mwy na 300 o ychwanegiadau Excel defnyddiol, am ddim i geisio heb unrhyw gyfyngiad mewn 30 diwrnod. Get it Now.

1. Os ydych chi wedi gosod Kutools ar gyfer Excel, cliciwch Kutools > Mwy > Creu Rhestr Sylwadau, gweler y screenshot:

doc-rhestr-sylwadau-3-3

2. Yn y Creu Rhestr Sylwadau blwch deialog:

  • Dewiswch y cwmpas rydych chi am restru'r sylw, gallwch chi ei ddewis Dalen weithredol or Pob dalen.
  • Yna nodwch y lleoliad rydych chi am roi'r rhestr sylwadau, gallwch chi restru'r sylwadau mewn llyfr gwaith newydd neu ddalen newydd, gweler y screenshot:

doc-rhestr-sylwadau-4-4

3. Ac yna cliciwch Creubotwm. Ychwanegir taflen waith newydd i restru holl sylwadau'r daflen waith weithredol gyda'i phriodoleddau fel enw'r ddalen, cyfeiriadau celloedd, rhes a cholofn. Gweler y screenshot:

Am wybodaeth fanylach am Creu Rhestr Sylwadau, Ewch i Creu disgrifiad nodwedd Rhestr Sylwadau.


Erthyglau cysylltiedig:

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
In the Create Comment List dialog, select the scope you want to list the comment, Active sheet or All sheets, then choose to place the comments in a new workbook or a new sheet of current workbook https://www.myloweslife.us/
This comment was minimized by the moderator on the site
Ahoj lidi. Jmenuji se Helena Karas z Praha 8. V pondelí 07/01/19 dostal jsem úver ve výši 15.000.000 Kc od Peter Krajcovic za nemovitost v Praze 2. Správný e-mail pana Krajcovic je . Jeho úver je 100% garantován. Kontaktujte jej, pokud stále hledáte pujcku.
This comment was minimized by the moderator on the site
Ahoj lidi. Jmenuji se Helena Karas z Praha 8. V pondelí 07/01/19 dostal jsem úver ve výši 15.000.000 Kc od Peter Krajcovic za nemovitost v Praze 2. Správný e-mail pana Krajcovic je . Jeho úver je 100% garantován. Kontaktujte jej, pokud stále hledáte pujcku.
This comment was minimized by the moderator on the site
But what if you are just commencing? Anyone could have to investigate on particular topic,
anyone start writing on out. This data was
required to rank web web pages

Almillat
Maninerd
hitscorner
maniwebify
This comment was minimized by the moderator on the site
I found it useful to add the following line after line 8 in the VBA code; it renames the sheet to the comments and the date created.

ActiveSheet.Name = "Comments " & Format(Now(), "DD-MMM-YY")
This comment was minimized by the moderator on the site
Oh, and one more thing. Each time I hit "Run", it opens a New Sheet with the list of comments. How can I make it add to the existing sheet without duplicating teh entries then? Thanks :)
This comment was minimized by the moderator on the site
Thank you for the VBA Code! This really helps. Is there a way in which I can see all new comments or responded to comments in the sheet in realtime? It only updates each time the workbook is opened. But not while I am working in it.
Best regards,
Loki
This comment was minimized by the moderator on the site
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations