MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Questions in Other Languages

Questions in Other Languages Ask any Excel questions in your native language (questions in languages other than English only, please).

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Nov 5th, 2009, 07:15 PM   #1
Chaveliado
 
Join Date: Nov 2009
Posts: 2
Default Problema con Macros Excel

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
Chaveliado is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.