Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JP JP is offline
external usenet poster
 
Posts: 103
Default In Excel how to make Column Values to Column Headings

I have a single Column in one Spreadsheet of a workbook, and the values have
to be Column headings in another spreadsheet in the same workbook. How can I
do this Programmatically? Any help is greatly appreciated.

Thanks.
J
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default In Excel how to make Column Values to Column Headings

ToolsMacro "Record New Macro"

Copy the range of cells(not more than 256) from source worksheet.

Switch to target worksheet and Paste SpecialTransposeOKEsc.

Stop recording.

Gord Dibben Excel MVP

On Fri, 22 Oct 2004 14:09:02 -0700, "JP" wrote:

I have a single Column in one Spreadsheet of a workbook, and the values have
to be Column headings in another spreadsheet in the same workbook. How can I
do this Programmatically? Any help is greatly appreciated.

Thanks.
J


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default In Excel how to make Column Values to Column Headings

with worksheets("sheet1")
set rng = .Range(.Cells(1,1),.Cells(1,1).End(xldown))
End with
if rng.count <= 256 then
rng.copy
worksheets("Sheet2").Cells(1,1).PasteSpecial paste:=xlPasteAll,
Transpose:=True
end If

--
Rgars,
Tom Ogilvy


"JP" wrote in message
...
I have a single Column in one Spreadsheet of a workbook, and the values

have
to be Column headings in another spreadsheet in the same workbook. How can

I
do this Programmatically? Any help is greatly appreciated.

Thanks.
J



Reply
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
How do you make column headings in Excel that are vertical? dixietractorworks Excel Discussion (Misc queries) 4 March 25th 09 02:20 PM
HOW TO MAKE VERTICAL COLUMN HEADINGS EXCEL GURU WANNA BE Excel Discussion (Misc queries) 1 August 6th 08 12:33 AM
How do I make column headings vertical in Excel bb New Users to Excel 2 June 15th 07 03:32 PM
How did I make my column headings become numeric (1 2 3) averyemma New Users to Excel 1 February 22nd 07 03:57 PM
How do I take information in 1 column to make column headings? Northside Excel Discussion (Misc queries) 1 December 16th 05 09:47 PM


All times are GMT +1. The time now is 01:33 AM.

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"