Copy and Paste Macro Assistance

Lilybeane

New Member
Joined
Aug 6, 2014
Messages
5
So...

I have need of assistance. I have a 5x5 table of data that I paste each morning into a worksheet. The top row is headers of location numbers, and I have a sheet for each of those locations that keeps the data in order by week. Each week, I paste each location's data onto their sheet. I would like to know how to code a macro that will take each location's data and paste it into the next row. I have a count cell (B24) on each sheet that tells me how many columns there are to the next empty column, and each worksheet is named the same thing as the header row on the table of data. Is this even possible?

Any help would be greatly appreciated.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
you can record a macro then click the things you need done, then save macro. Tweek the parts you need, but Yours is probably...

Code:
Range("A1").select
Selection.End(xlToRight).Select
activecell.offset(0,1).select   'THIS IS THE NEXT FREE COLUMN.
 
Upvote 0

Forum statistics

Threads
1,214,596
Messages
6,120,438
Members
448,966
Latest member
DannyC96

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