Transpose VBA troubles

Glasgowsmile

Active Member
Joined
Apr 14, 2018
Messages
280
Office Version
  1. 365
Platform
  1. Windows
I've got the following formula and I need to add Transpose:=True to it but everything I've tried produces errors. Is there a simple way to do it for this?

Originally I was using .copy with .pastespecial xlpastevalues, transpose=:true but I wanted to see if the below approach would be faster for execution.

VBA Code:
Sheets("Data").Range("Z10, Z14, Z18, Z20") = Sheet1.Range("C" & Rows.Count).End(xlUp).Offset(1).Value
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
what is the end result you are trying to achieve
 
Upvote 0
Maybe something like

VBA Code:
Sheets("Data").Range("Z10, Z14, Z18, Z20") = Application.WorksheetFunction.Transpose(Sheet1.Range("C" & Rows.Count).End(xlUp).Offset(1).Value)
 
Upvote 0
Maybe something like

VBA Code:
Sheets("Data").Range("Z10, Z14, Z18, Z20") = Application.WorksheetFunction.Transpose(Sheet1.Range("C" & Rows.Count).End(xlUp).Offset(1).Value)
Tried this but the range Sheet1("C") ends up being blank each time so it's not working
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,722
Members
449,116
Latest member
Aaagu

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