Chi mi da una mano?
Grazie
- Codice: Seleziona tutto
Sub PASQUINELLI_Apro_copio_chiudo()
'
' Macro1 Macro
'
Application.ScreenUpdating = False
Dim rng As Range, bk As Workbook
' Apro il foglio il cui nome è indicato nella cella H1
Set rng = Worksheets("STRINGA PASQUINELLI").Cells(1, 1)
If (Trim(rng.Value) <> "") Then
Set bk = Workbooks.Open("C:\NEXT GENERATION\STRINGHE\" & rng.Value)
Range("A2:BA50").Select
Selection.Copy
ThisWorkbook.Activate
'APRO STRINGA PASQUINELLI
Sheets("RM").Select
Sheets("STRINGA PASQUINELLI").Visible = True
Sheets("STRINGA PASQUINELLI").Select
Range("A2").Select
ActiveSheet.Paste
Range("A1").Select
'CHIUDO STRINGA PASQUINELLI
Sheets("STRINGA PASQUINELLI").Select
ActiveWindow.SelectedSheets.Visible = False
Application.DisplayAlerts = False
bk.Close SaveChanges:=False
End If
Application.ScreenUpdating = True
'
End Sub