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

289
Views
Recepción de error en la línea "Establecer myshape = ActiveSheet.Shapes (Application.Caller)"

Estoy usando una pequeña macro para agregar y eliminar el campo de datos en pivotable. Tengo un botón asignado a Buttom, al presionar el botón puedo llamar al campo, pero al presionar dos veces debería ocultarse, pero no sucede. Una de las razones, apuntó a Set myshape = ActiveSheet.Shapes (Application.Caller). Tal vez tengo otros problemas con el código. Aquí está el código:

 Sub Base_Salary() Dim pt As PivotTable Dim pf As PivotField Dim sField As String Dim myshape As Shape Set pt = ActiveSheet.PivotTables(1) Set myshape = ActiveSheet.Shapes(Application.Caller) sField = myshape.TextFrame.Characters.Text If pt.PivotFields(sField).Orientation = xlDataField Then pt.PivotFields(sField).Orientation = xlHidden myshape.Fill.ForeColor.Brightness = 0.5 Else pt.PivotFields(sField).Orientation = xlDataField myshape.Fill.ForeColor.Brightness = 0 End If End Sub
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!