Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
Desea cambiar un valor en una tabla de Excel en función de un valor encontrado a través de la función de coincidencia

Quiero hacer un script de VBA que pueda cambiar un valor en una tabla en función de una matriz de valores . Estos valores se encuentran a través de la función application.match . ¿Puede alguien ayudarme con este? Empecé VBA ayer, así que no soy un usuario avanzado. (Encontré mucha información a través de Google, pero esta fue difícil de encontrar). El código usado está debajo

 Dim i As Integer For i = 16 To 29 If ThisWorkbook.Sheets("General").Range("A" & i) = "" Then Else MsgBox ThisWorkbook.Sheets("General").Range("A" & i) 'Find value in Table Dim Assignments As Worksheet Dim TargetTable As ListObject Dim TargetRW As Variant Set Opdrachten = ThisWorkbook.Sheets("Jobs") Set TargetTable = Opdrachten.ListObjects("Assignments") TargetRW = Application.Match(i, TargetTable.ListColumns(1), 0) MsgBox TargetRW 'I get an error at this point' 'Change value in Table If Not IsError(TargetRW) Then TargetTable.DataBodyRange.Cells(TargetRW, 6) = "Yes" Else MsgBox "Error, allready verified." End If End If Next i

Gracias por adelantado

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!