Julio Mangilli
05-11-2018 15:30:57
Olá pessoal, venho humildemente pedir uma ajuda, tenho a programação a baixo que foi criada no Excel 64bits que funciona muito bem e no 32 bits não está funcionando, ele fala que não encontra informação na biblioteca.
O que devo fazer?
depois dessa tenho uma MsgBox que também não funciona.
Sub Transferir()
ActiveWorkbook.Unprotect "041063"
Sheets("Hist?ricosEmpresas").Visible = True
Application.ScreenUpdating = False
Dim W As Worksheet
Dim W1 As Worksheet
Dim Matriz(5) As Integer
Set W = Sheets("Filtro")
Set W1 = Sheets("Hist?ricosEmpresas")
Matriz(0) = 14
Matriz(1) = 3
Matriz(2) = 4
Matriz(3) = 7
Matriz(4) = 8
Col1 = 1
For Col = 0 To 4
Ultlin = W.Cells(Rows.Count, Matriz(Col)).End(xlUp).Row
For Lin = 4 To Ultlin
UltLinW1 = W1.Cells(Rows.Count, Col1).End(xlUp).Row
W1.Cells(UltLinW1 + 1, Col1) = W.Cells(Lin, Matriz(Col))
Next Lin
Col1 = Col1 + 1
Next Col
Application.ScreenUpdating = True
Sheets("Hist?ricosEmpresas").Select
Call duplicadasremover
Call rodarmacro3macros
tranferirgeral
Sheets("Hist?ricosEmpresas").Visible = False
Sheets("Filtro").Select
Range("a1").Select
ActiveWorkbook.Protect "041063"
End Sub
Muito Obrigado desde já.
O que devo fazer?
depois dessa tenho uma MsgBox que também não funciona.
Sub Transferir()
ActiveWorkbook.Unprotect "041063"
Sheets("Hist?ricosEmpresas").Visible = True
Application.ScreenUpdating = False
Dim W As Worksheet
Dim W1 As Worksheet
Dim Matriz(5) As Integer
Set W = Sheets("Filtro")
Set W1 = Sheets("Hist?ricosEmpresas")
Matriz(0) = 14
Matriz(1) = 3
Matriz(2) = 4
Matriz(3) = 7
Matriz(4) = 8
Col1 = 1
For Col = 0 To 4
Ultlin = W.Cells(Rows.Count, Matriz(Col)).End(xlUp).Row
For Lin = 4 To Ultlin
UltLinW1 = W1.Cells(Rows.Count, Col1).End(xlUp).Row
W1.Cells(UltLinW1 + 1, Col1) = W.Cells(Lin, Matriz(Col))
Next Lin
Col1 = Col1 + 1
Next Col
Application.ScreenUpdating = True
Sheets("Hist?ricosEmpresas").Select
Call duplicadasremover
Call rodarmacro3macros
tranferirgeral
Sheets("Hist?ricosEmpresas").Visible = False
Sheets("Filtro").Select
Range("a1").Select
ActiveWorkbook.Protect "041063"
End Sub
Muito Obrigado desde já.