Moderatori: Anthony47, Flash30005
Sub creatot()
Dim Shp As Shape, TLC As Long, I As Long
'
For I = 2 To Worksheets.Count
'If i > 6 Then Stop
Sheets(I).Select
lastr = GetLastR(Sheets(1).Range("A:J"))
ActiveSheet.UsedRange.Copy Sheets(1).Range("A" & lastr + 2)
For Each Shp In ActiveSheet.Shapes
TLC = 0
On Error Resume Next
TLC = Shp.TopLeftCell.Row
On Error GoTo 0
If TLC > 0 Then
Sheets(1).Shapes(Sheets(1).Shapes.Count).Delete
Shp.Copy
Sheets(1).Paste
Sheets(1).Shapes(Sheets(1).Shapes.Count).Top = Sheets(1).Cells(lastr + 1 + TLC, 1).Top
Sheets(1).Shapes(Sheets(1).Shapes.Count).Left = 10
Sheets(1).Cells(lastr + 1 + TLC, 1).RowHeight = Shp.TopLeftCell.Height
End If
Next Shp
Next I
Sheets(1).Select
MsgBox ("Completato accodamento")
End Sub
Function GetLastR(ByRef myRan As Range) As Long
Dim Last
'
With myRan
Set Last = .Find(What:="*", After:=.Cells(1, 1), SearchDirection:=xlPrevious, SearchOrder:=xlByRows, LookIn:=xlFormulas)
End With
If Last Is Nothing Then GetLastR = 1 Else GetLastR = Last.Row
End Function
Torna a Applicazioni Office Windows
posizionamento casuale di risposte Autore: robertogiuseppe |
Forum: Applicazioni Office Windows Risposte: 2 |
AIUTO CON ORDINE RISPOSTE QUIZ , FILE EXCELL Autore: wrangler11 |
Forum: Applicazioni Office Windows Risposte: 4 |
Macro controlla se le risposte delle celle sono complete Autore: Zagor57 |
Forum: Applicazioni Office Windows Risposte: 6 |
Visitano il forum: Nessuno e 16 ospiti