perdonami
ho scaricato excel utilities , ma cosa devo fare in concreto?
che tasti devo utilizzare?
Moderatori: Anthony47, Flash30005
Sub salva3()
Directory = "C:\Temp\"
ThisFile = [B2] & [D2] & ".xls"
If ThisFile = ".xls" Then
MsgBox "Impossibile dare il nome al file (B2 e D2 vuoti)"
Exit Sub
End If
ActiveSheet.Copy
For Each Pict In ActiveSheet.Shapes
If Left(Pict.Name, 6) = "Button" Then
ActiveSheet.Shapes(Pict.Name).Cut
End If
Next Pict
Columns("AK:BE").Delete Shift:=xlToLeft
ActiveWorkbook.SaveAs Filename:=Directory & ThisFile
'<<<< eliminare le righe che seguono se non occorrono
MsgBox _
" Il Tuo File è stato salvato correttamente " & vbCrLf & _
" " & vbCrLf & (ThisFile), vbInformation
End SubSub salva4()
Directory = "C:\Temp\"
ThisFile = [B2] & [D2] & ".xls"
If ThisFile = ".xls" Then
MsgBox "Impossibile dare il nome al file (B2 e D2 vuoti)"
Exit Sub
End If
ActiveSheet.Copy
Cells.Copy '<<<<< riga aggiunta
Cells.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False '<<< riga aggiunta
For Each Pict In ActiveSheet.Shapes
If Left(Pict.Name, 6) = "Button" Then
ActiveSheet.Shapes(Pict.Name).Cut
End If
Next Pict
Columns("AK:BE").Delete Shift:=xlToLeft
ActiveWorkbook.SaveAs Filename:=Directory & ThisFile
'<<<< eliminare le righe che seguono se non occorrono
MsgBox _
" Il Tuo File è stato salvato correttamente " & vbCrLf & _
" " & vbCrLf & Directory & ThisFile, vbInformation
End Sub
Torna a Applicazioni Office Windows
| Estrazione e creazione foglio costi passivi dinamico Autore: danibi60 |
Forum: Applicazioni Office Windows Risposte: 35 |
| Excel apre solo una schermata bianca Autore: jameswilson |
Forum: Applicazioni Office Windows Risposte: 1 |
| Come evidenziare aree separate di un foglio Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 18 |
Visitano il forum: libraio e 27 ospiti