Columns to rows macro with a new row added everytime the button is hit

Jwatts83986

New Member
Joined
Jan 19, 2017
Messages
1
I have to collect data every day in a column format.

I am trying to make a macro that allows the column B3:B32 to be transposed into a row at G4:AJ4. And then every time the macro button is pushed a new row is created under the previous days row.

I am lost in the VBA. ANY help would be greatly appreciated.

-JW
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hope this helps.

Code:
Sub tr()
Dim LR As Long
Dim x
LR = cells(Rows.Count, 7).End(xlUp).Row + 1
x = WorksheetFunction.Transpose(Range("B3:B32"))
Range(cells(LR, 7), cells(LR, 36)) = x
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,285
Members
449,218
Latest member
Excel Master

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