Problema con Macros Excel

Chaveliado

New Member
Joined
Nov 5, 2009
Messages
6
Tengo un problema con esta macro, no se ejecuta bien, unicamente hace lo que quiero si la separo en 2 partes quisiera que me ayudaran, aqui les envio los codigos;

Aqui estan las 2 macros, estan separadas porque solo asi funcionan bien lo que quiero es que al unirlas ejecuten lo mismo. Gracias


Sub pasouno()
'
' pasouno Macro
' Macro recorded 17/04/2008 by CSF
'
While ActiveCell.Value <> ""
ActiveCell.Offset(1, 0).Range("A1").Select
Wend
Application.MoveAfterReturn = False

ActiveCell.Offset(0, 0).Select
Application.SendKeys ("%=~")
'
End Sub



Sub paso2()
'
' pruebaaaaaaaaaaaaa Macro
' Macro recorded 17/04/2008 by CSF


ActiveCell.Offset(0, 0).Select
ActiveCell.Copy
ActiveCell.Offset(-1, 1).Select

Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
ActiveCell.Offset(0, -1).Select
ActiveCell.Offset(1, 0).Select
Selection.ClearContents
ActiveCell.Offset(1, 0).Select
Application.MoveAfterReturn = True
'
End Sub
 
ya observe como funciona Sub PinteVarios()
pero al escribir el pasouno me da errores (creo que no lo estoy haciendo bien) estoy trabajando en eso. y para asignar el valor a la variable y el objeto debe ir al principio del codigo?
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,958
Messages
6,175,637
Members
452,663
Latest member
MEMEH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top