Note: The other languages of the website are Google-translated. Back to English

Sut i gopïo data i daflen waith arall gyda Advanced Filter yn Excel?

Fel rheol, gallwn gymhwyso'r Hidlo Uwch nodwedd i dynnu data o'r data crai yn yr un daflen waith. Ond, weithiau, pan geisiwch gopïo'r canlyniad wedi'i hidlo i daflen waith arall, fe gewch y neges rybuddio ganlynol. Yn yr achos hwn, sut allech chi ddelio â'r dasg hon yn Excel?

Copïwch ddata i daflen waith arall gyda Advanced Filter trwy ddefnyddio nodwedd Hidlo Uwch

Copïwch ddata i daflen waith arall gyda Advanced Filter trwy ddefnyddio cod VBA

Copïwch ddata i daflen waith arall gyda Advanced Filter trwy ddefnyddio nodwedd Hidlo Uwch

Dyma gylch gwaith syml i chi ddatrys y swydd hon, gwnewch fel hyn:

1. Gweithredwch y daflen waith lle rydych chi am gopïo'r canlyniad wedi'i hidlo trwy ddefnyddio'r swyddogaeth Hidlo Uwch.

2. Yna cliciwch Dyddiad > Uwch, gweler y screenshot:

3. Yn y Hidlo Uwch blwch deialog, dewiswch Copïwch i leoliad arall oddi wrth y Gweithred adran, ac yna cliciwch botwm i ddewis yr ystod ddata rydych chi am ei hidlo mewn dalen arall wrth ymyl y Ystod rhestr, ewch ymlaen i glicio botwm wrth ochr y Amrediad meini prawf i ddewis y meini prawf o ddalen arall, gweler y screenshot:

4. Yna cliciwch botwm wrth ochr y Copi i blwch i ddewis cell lle rydych chi am allbynnu'r canlyniad wedi'i hidlo o'r ddalen weithredol, ac yna cliciwch OK botwm, mae'r canlyniad wedi'i hidlo wedi'i dynnu i mewn i ddalen arall yn seiliedig ar eich taflen ddata wreiddiol.

Copïwch ddata i daflen waith arall gyda Advanced Filter trwy ddefnyddio cod VBA

Os ydych chi'n fedrus gyda chod VBA, gallwch chi orffen y swydd hon trwy ddilyn cod VBA.

1. Gweithredwch y daflen waith rydych chi am ei hidlo a chopïo'r canlyniad i ddalen arall.

2. Daliwch i lawr y ALT + F11 allweddi yn Excel, ac mae'n agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

3. Cliciwch Mewnosod > Modiwlau, a gludwch y cod canlynol yn y Modiwlau Ffenestr.

Cod VBA: Copïwch ddata i daflen waith arall gyda Advanced Filter:

Sub Advancedfiltertoanothersheet()
'Updateby Extendoffice
    Dim xStr As String
    Dim xAddress As String
    Dim xRg As Range
    Dim xCRg As Range
    Dim xSRg As Range
    On Error Resume Next
    xAddress = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("Please select the filter range:", "Kutools for Excel", xAddress, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    Set xCRg = Application.InputBox("Please select the criteria range:", "Kutools for Excel", "", , , , , 8)
    If xCRg Is Nothing Then Exit Sub
    Set xSRg = Application.InputBox("Please select the output range:", "Kutools for Excel", "", , , , , 8)
    If xSRg Is Nothing Then Exit Sub
    xRg.AdvancedFilter xlFilterCopy, xCRg, xSRg, False
End Sub

4. And then press F5 key to run this code, and a prompt box is popped out to let you select the data range that you want to filter, see screenshot:

5. Then click OK, and another dialog box is popped out to remind you to select the criteria range you want to filter based on, see screenshot:

6. Go on clicking OK, in the popped out dialog box, please select a cell from another new worksheet where you want to output the filter result, see screenshot:

7. At last, click OK button, the filtered data has been outputted into another specified sheet as you need.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
No funciona, sigue el mismo mensaje de error....
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations