0% found this document useful (0 votes)
22 views4 pages

If .Range ("A1") .Value "" Then

The document contains a VBA code subroutine that copies data from one sheet to another. It defines variables to store the last row of data on each sheet. It checks if the target sheet is empty, and if so sets the last row variable to 1. If not empty, it determines the last row. It then copies the entire row of data from the source sheet and pastes it onto the target sheet.

Uploaded by

kemon7
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

If .Range ("A1") .Value "" Then

The document contains a VBA code subroutine that copies data from one sheet to another. It defines variables to store the last row of data on each sheet. It checks if the target sheet is empty, and if so sets the last row variable to 1. If not empty, it determines the last row. It then copies the entire row of data from the source sheet and pastes it onto the target sheet.

Uploaded by

kemon7
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 4

5 ‫ا‬ 88 ‫اا‬ 99 ‫تت‬ ‫هه‬ ‫نن‬ 1

trow As Long
tro1 As Long
= Range("a" & Rows.Count).End(xlUp).Row

nge("A1").Value = "" Then

strow = .Cells(.Rows.Count, "A").End(xlUp).Row + 1

e("a" & lastro1).EntireRow.Copy .Cells(Lastrow, "A")


7777 ‫مم‬

Sub ÒÑ1_ÇäÞÑ()
Dim Lastrow As Long
Dim lastro1 As Long
lastro1 = Range("a" & Rows.C
With Sheets(2)

If .Range("A1").Value = ""

Lastrow = 1
Else

Lastrow = .Cells(.Rows.
End If
Range("a" & lastro1).EntireR
End With
End Sub
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪5‬‬ ‫ا‬ ‫‪88‬‬ ‫اا‬ ‫‪99‬‬ ‫تت‬ ‫هه‬ ‫نن‬ ‫‪1‬‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬
‫‪7777‬‬ ‫مم‬

You might also like