LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Transpose a column list to every other cell in a row on anothersheet, then center


I want to transpose a column list of names to every other cell in a row on another sheet and then "center across selection" each name with the cell it is in plus the cell to the right.

The list on sheet 1 will vary from 4 to 10, 20 names.

So on sheet 3 cells D4 and E4 would have a name centered on them, cells F4 and G4 would have the next name centered on them and so on for all the names in the row.

The previous transposed & centered names need to be cleared and the new transposed set of names overwritten to cell D4 each time the code is run.

This code puts the names in the correct spot on sheet 3, but all in a continuous row.

Thanks,
Howard

Sub Name_Hours_OPNumber()

Dim nhoRng As Range

Set nhoRng = Sheets("Sheet1").Range("D7:D" & Cells(Rows.Count, "D").End(xlUp).Row)
nhoRng.Copy
Sheets("Sheet3").Range("D4").PasteSpecial Paste:=xlPasteAll, Transpose:=True

End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
transpose rows to column (cell) Ghaleb Bakri Excel Discussion (Misc queries) 3 January 4th 10 09:04 AM
How to transpose and concatenate long list in one column? CSchwass Excel Worksheet Functions 12 September 11th 09 12:46 AM
Move to specific sheet and cell based on criteria entered on anothersheet [email protected] Excel Programming 1 July 15th 08 03:52 PM
check text in cell for at least one keyword from a list on anothersheet Brotherharry Excel Worksheet Functions 4 December 10th 07 03:23 PM
find first empty cell in column and start transpose next row in that cell ali Excel Discussion (Misc queries) 6 July 21st 07 11:55 PM


All times are GMT +1. The time now is 09:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"