Copy and paste macro

Reggie64

New Member
Joined
Apr 26, 2011
Messages
3
Hi there,

I'm currently trying to create a simple copy and paste macro on excel 2003.

All i want to do is copy a column of data into excel, copy and transpose it into rows and store in a list below, i can get the macro to copy and transpose the data but after that i want each column of data i enter to be stored in the next blank cell.

This is the basic code i have been using for the copying and transposing:

Range("B3:B22").Select
Selection.Copy
Range("A27").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

I know it's very basic but i need a line of code in there to make it select and paste to the next available blank cell.


Any help would be greatly appreciated, Please??
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try

Code:
Range("B3:B22").Copy
Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteAll, Transpose:=True
 
Upvote 0
****, thought that'd work, its still just pasting into the one row.

Thanks for your quick reply though!
 
Upvote 0
If column A is empty maybe

Code:
Range("B3:B22").Copy
Range("B" & Rows.Count).End(xlUp).Offset(1, -1).PasteSpecial Paste:=xlPasteAll, Transpose:=True
 
Upvote 0
Hi,
I need some help with editing my macro. I am trying to do a copy & paste value command to a range of cells ("B3:B121). How should I go about doing this? Please help as I have hardly any experience in VBA. All the help I got were from going through these forums. Thanks a million!
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

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