shamilaz
asked on
POP UP BOX when a macro is run
Hi
I have a macro which I currently use to copy data from one spreadsheet toanother. I would like a POP up box to come up every time the copy macro is run, stating"Data Copied". The macro I currently use is given below.
thanks very much
Sub copyrows()
Dim sws As Worksheet
Dim tws As Worksheet
Dim sr As Range
Set sws = Sheets("sheet1")
Set tws = Sheets("sheet2")
Set sr = sws.Range("A3:A" & sws.Range("A" & Rows.Count).End(xlUp).Row)
If sws.Range("A3") <> "" Then
tws.Range("A" & Rows.Count).End(xlUp).Offs et(1).Resi ze( _
sr.Rows.Count).EntireRow.V alue = sr.EntireRow.Value
End If
End Sub
I have a macro which I currently use to copy data from one spreadsheet toanother. I would like a POP up box to come up every time the copy macro is run, stating"Data Copied". The macro I currently use is given below.
thanks very much
Sub copyrows()
Dim sws As Worksheet
Dim tws As Worksheet
Dim sr As Range
Set sws = Sheets("sheet1")
Set tws = Sheets("sheet2")
Set sr = sws.Range("A3:A" & sws.Range("A" & Rows.Count).End(xlUp).Row)
If sws.Range("A3") <> "" Then
tws.Range("A" & Rows.Count).End(xlUp).Offs
sr.Rows.Count).EntireRow.V
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for shamilaz's comment #a39325183
for the following reason:
Works well with my spreadsheet...thanks again
Accepted answer: 0 points for shamilaz's comment #a39325183
for the following reason:
Works well with my spreadsheet...thanks again
Thanks.
I presume the notification of the request to close the question within four days has subsequently been superseded.
I presume the notification of the request to close the question within four days has subsequently been superseded.
ASKER