Hello,
Experiencing a problem with VBA.
I am trying to copy range F1:M15 from 40 worksheets and pasting it as image on Sheet1. Pictures need to be places one after another in column A. (Preferably fixed in a cell, i.e. first in A1, 2nd in A2 etc.).
Sadly I can't get my code to work. Could anyone suggest changes?
Sub CopyAsImage()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
If ws.Name <> "Sheet1" Then
ws.Range("F1:M15").Copy Sheets("Sheet1").Cells(Rows.Count, "A1").End(xlUp).Offset(1)
End If
Next
Application.ScreenUpdating = True
End Sub
Experiencing a problem with VBA.
I am trying to copy range F1:M15 from 40 worksheets and pasting it as image on Sheet1. Pictures need to be places one after another in column A. (Preferably fixed in a cell, i.e. first in A1, 2nd in A2 etc.).
Sadly I can't get my code to work. Could anyone suggest changes?
Sub CopyAsImage()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
If ws.Name <> "Sheet1" Then
ws.Range("F1:M15").Copy Sheets("Sheet1").Cells(Rows.Count, "A1").End(xlUp).Offset(1)
End If
Next
Application.ScreenUpdating = True
End Sub