Copy/Paste filtered data to another sheets

Status
Not open for further replies.

OneAbhishek

New Member
Joined
Feb 23, 2022
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone i am working in this sheet where i have to copy data from one sheet named as "DAILY" and paste to next available row in column "B" in another sheet named as DATABASE2". i tried following vba code i want to assign this macro to a linked picture. i hope i will get lucky and someone will help me too
It shows object error

Sub Save1()

' SAVE1 Macro
'

'
ActiveSheet.Range("$A$9:$H$80").AutoFilter Field:=3, Criterial:="<>"
Range("B10:I80").SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("DATABASE2").Select
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, 2).End(xlUp)
ActiveCell.End(xlDown).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("DAILY").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("I17").Select
End Sub
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Duplicate to: Copy And paste visible data of table after filter to another table of anothet sheet

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.

Further, I have already pointed you to the Forum Rules via our conversation messages. If you do not read and follow all the rules then you may find that your forum privileges are curtailed or removed.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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