bom dia,
Leonardo deu tudo certo mais,
vou dizer com esta as abas da minha planilha:
MENU/NOVA ENTRADA/ACP/Recebimento/A PARTE
na planilha Nova entrada, ela funciona assim,
digito os dados( ela esta como formulario de entrada de dados) e é enviado para as planilhas
(ACP/Recebimento/A PARTE)
Gostaria que ela fizesse o mesmo processo com as macros! com o topico anterior,
Pois quando estou tentendo enviar dados da erros por causa que as planilhas que estou tentando enviar estão ocultas...
como consigo isso?
as macros de envio estão assim!
Sub ACP()
'
' ACP Macro
' Macro gravada em 30/09/2010 por mprbraex
'
'
Selection.Copy
Sheets("ACP").Select
Range("B2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("E9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("ACP").Select
Range("C2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("G9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("ACP").Select
Range("D2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("I9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("ACP").Select
Range("E2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("K9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("ACP").Select
Range("F2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("M9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("ACP").Select
Range("G2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Application.CutCopyMode = False
Range("C9").Select
End Sub
Sub Recebimento()
'
' Recebimento Macro
' Macro gravada em 30/09/2010 por mprbraex
'
'
Selection.Copy
Sheets("Recebimento").Select
Range("B2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("E9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recebimento").Select
Range("C2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("G9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recebimento").Select
Range("D2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("I9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recebimento").Select
Range("E2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("K9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recebimento").Select
Range("F2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("M9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recebimento").Select
Range("G2").Select
Selection.Insert Shift:=xlDown
Range("B2").Select
Sheets("Nova Entrada").Select
Application.CutCopyMode = False
Range("C9").Select
End Sub
Sub PARTE()
'
' PARTE Macro
' Macro gravada em 30/09/2010 por mprbraex
'
'
Selection.Copy
Sheets("A PARTE").Select
Range("C2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("E9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("E2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("G9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("F2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("I9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("G2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("K9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("H2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("M9").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("I2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("C6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("B2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Range("E6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("A PARTE").Select
Range("D2").Select
Selection.Insert Shift:=xlDown
Sheets("Nova Entrada").Select
Application.CutCopyMode = False
Range("C6").Select
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 01/10/2010 9:24 am