How To Copy A Row using VBA

bloodmilksky

Board Regular
Joined
Feb 3, 2016
Messages
202
Hi Guys,

I was just wondering if anyone knows how to copy Row 8 From Sheet 1 to A1 in All Sheets in the workd book.

Many thanks

Jamie
 
Try
Code:
Option Explicit

Sub Treat()
Dim WS  As Worksheet
   For Each WS In Worksheets
      If (WS.Name <> "Sheet1") Then
         Sheets("Sheet1").Rows("8:8").Copy Destination:=WS.Range("A1")
      End If
   Next
End Sub
 
Upvote 0
Another method
Code:
Sub t()
For i = 2 to Sheets.Count
	Sheets(1).Rows(8).Copy Sheets(i).Range("A1")
Next
End Sub
 
Upvote 0
Try
Code:
Option Explicit

Sub Treat()
Dim WS  As Worksheet
   For Each WS In Worksheets
      If (WS.Name <> "Sheet1") Then
         Sheets("Sheet1").Rows("8:8").Copy Destination:=WS.Range("A1")
      End If
   Next
End Sub


Perfect thank you so much ^_^
 
Upvote 0
You're welcome Jamie, I'm please if you are please
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top