Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Transform entities from column of 1 sheet1 to row of another sheet
How to transfer the entities in the columns of one worksheet to rows of
another worksheet in an Excel book?. For example I would like to copy 50 entities in column A of worksheet 1 to row 1 of worksheet 2. So, for the above question I would like to know the code that should be written in the VB code editor (for the command button with caption "Shift Entities"). |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Transform entities from column of 1 sheet1 to row of another sheet
Private Sub ShiftEntities_Click()
Dim wb2 As Workbook Set wb2 = Workbooks("YourBook2.xls") Range("A1:A50").Copy Windows("Book2").Activate Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True End Sub HTH Die_Another_Day Thulasiram wrote: How to transfer the entities in the columns of one worksheet to rows of another worksheet in an Excel book?. For example I would like to copy 50 entities in column A of worksheet 1 to row 1 of worksheet 2. So, for the above question I would like to know the code that should be written in the VB code editor (for the command button with caption "Shift Entities"). |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Transform entities from column of 1 sheet1 to row of another s
Thanks a lot.
"Die_Another_Day" wrote: Private Sub ShiftEntities_Click() Dim wb2 As Workbook Set wb2 = Workbooks("YourBook2.xls") Range("A1:A50").Copy Windows("Book2").Activate Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True End Sub HTH Die_Another_Day Thulasiram wrote: How to transfer the entities in the columns of one worksheet to rows of another worksheet in an Excel book?. For example I would like to copy 50 entities in column A of worksheet 1 to row 1 of worksheet 2. So, for the above question I would like to know the code that should be written in the VB code editor (for the command button with caption "Shift Entities"). |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Transform entities from column of 1 sheet1 to row of another s
I get an error when I pasted the code in the VBA script. i changed
YourBook2.xls as Sample.xls as its the file name. Compiler shows error in Windows("Book2").Activate and Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True Please help "Die_Another_Day" wrote: Private Sub ShiftEntities_Click() Dim wb2 As Workbook Set wb2 = Workbooks("YourBook2.xls") Range("A1:A50").Copy Windows("Book2").Activate Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True End Sub HTH Die_Another_Day Thulasiram wrote: How to transfer the entities in the columns of one worksheet to rows of another worksheet in an Excel book?. For example I would like to copy 50 entities in column A of worksheet 1 to row 1 of worksheet 2. So, for the above question I would like to know the code that should be written in the VB code editor (for the command button with caption "Shift Entities"). |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Transform entities from column of 1 sheet1 to row of another sheet
Hello.
When I paste the code in the script editor, i get an error in the following lines. Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True please help. it will b so nice of you. Awaiting your response, Thulasiram Die_Another_Day wrote: Private Sub ShiftEntities_Click() Dim wb2 As Workbook Set wb2 = Workbooks("YourBook2.xls") Range("A1:A50").Copy Windows("Book2").Activate Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True End Sub HTH Die_Another_Day Thulasiram wrote: How to transfer the entities in the columns of one worksheet to rows of another worksheet in an Excel book?. For example I would like to copy 50 entities in column A of worksheet 1 to row 1 of worksheet 2. So, for the above question I would like to know the code that should be written in the VB code editor (for the command button with caption "Shift Entities"). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How I transform a row into a column? | Excel Discussion (Misc queries) | |||
[=Sheet1!A1] - if i use Column A1 ('Sheet1') / A2 ('Sheet2') | Excel Worksheet Functions | |||
How I transform a row into a column? | Excel Discussion (Misc queries) | |||
How can I transform several rows into 1 column in excel? | Excel Discussion (Misc queries) | |||
counting entities with the same values | Excel Programming |