Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/09/2012, 06:53
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 19 años
Puntos: 79
Respuesta: Macro Excel. No sé cómo hacerlo.

sorry dorde, me maree y pensé que tu eras el de la pregunta, debia decir "gubertu".
No quise en ningun momento opacarte... todas las soluciones son útiles.


el script que hice fue este:
Código vb:
Ver original
  1. Private Sub w_Click()
  2. y = 1
  3. Do While Cells(y, 1) <> ""
  4.     If Cells(y, 3) < 0 Then
  5.         valorC4 = 0
  6.     Else
  7.         valorC4 = Cells(y, 3)
  8.     End If
  9.     If Cells(y, 3) > 0 Then
  10.         valorC5 = 0
  11.     Else
  12.         valorC5 = Cells(y, 3) * -1
  13.     End If
  14.     Cells(y, 4) = valorC4
  15.     Cells(y, 5) = valorC5
  16.     y = y + 1
  17. Loop
  18. Columns("C:C").Delete Shift:=xlToLeft
  19. End Sub

salu2 cordiales
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip