Paste special values into next free (empty) cell

dwilson38550m

Board Regular
Joined
Nov 21, 2005
Messages
89
Hi,

Sorry I hope this in easy one...I am copying data from one source to a master workbook (Sheet1). Is there a way I can use a vba to paste special values data into the next available free/empty cell in the master workbook Sheet1. For day 1 the data i copy in may be 10 rows (cell A1 to A10), the next day it may be 15 rows of days (A1 to A15), day 3 25 rows of data (cell A1 to A25) etc. I just don't know how to automatically find and paste special values to the next free cell in the master workbook (Sheet1). Thanks in advance.

David
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Re: Help please..excel paste special values into next free (empty) cell

.
Edit cell range as needed :

Code:
Option Explicit


Sub cpypstespecial()
'Dim myfirstrow As Long, i As Long
    Dim MyLastRow As Long
    MyLastRow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row + 1
'Columns("A:A").Select
   Range("A1:E6").Copy
   Sheets("Sheet1").Range("A" & MyLastRow).PasteSpecial xlPasteValues
   Application.CutCopyMode = False


End Sub
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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