ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Transposing numbers (https://www.excelbanter.com/excel-programming/285731-transposing-numbers.html)

[email protected]

Transposing numbers
 
Hi,
In cells G1:M1, I can enter a range of numbers. Some cells
will be empty.
How can I copy this range to G9:G15

Thankyou

SuperJas

Transposing numbers
 
Straight from the Macro Recorder:

Sub Transpose()

Range("G1:M1").Select
Selection.Copy
Range("G9").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone, SkipBlanks:=False _
, Transpose:=True
End Sub

SuperJas.

RWN

Transposing numbers
 
Select and copy G1-M1
Select G9
Paste-Special
Select the "Transpose" option (lower right) and click "OK"


--
Regards;
Rob
------------------------------------------------------------------------
" wrote in
message ...
Hi,
In cells G1:M1, I can enter a range of numbers. Some cells
will be empty.
How can I copy this range to G9:G15

Thankyou




Colo[_43_]

Transposing numbers
 
As a simple code,


Code:
--------------------

[G9:G15] = Application.Transpose([G1:M1])

--------------------



---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 11:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com