Link to home
Create AccountLog in
Avatar of shamilaz
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).Offset(1).Resize( _
        sr.Rows.Count).EntireRow.Value = sr.EntireRow.Value
End If
End Sub
ASKER CERTIFIED SOLUTION
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of shamilaz
shamilaz

ASKER

Works great, thanks very much
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
Thanks.

I presume the notification of the request to close the question within four days has subsequently been superseded.