VBA/Macro - Pasting over data

mvega

New Member
Joined
Oct 11, 2013
Messages
2
Hello,

I currently input several peices of data into a table on one tab.
I extract 4 peices of this data into another table
contract date
crush month
option month
hedged basis

doing a formula like (assuming contract date is column A) =if(A1<>0,A1,"")

I have a macro that then copies this table and pastes it below. This information is entered daily, and we wanta cumulative tab to keep a running record.

The issue I'm having is that different amounts of data are input each day. Some days there may be ten lines some there may be 4. However the table is copied and pasted as 15 lines every day, although many return simply the "".

When the next day runs and pasts, there is a gap in the data, as I use Selection.End(xlUp) in the paste command.

Does anyone have any idea how I might get there to be no gap in the data? is there a way to paste over these "blank" cells?


I hope I was clear in my description.

Thanks for your help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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