ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Another Cool Macro (https://www.excelbanter.com/excel-worksheet-functions/197136-another-cool-macro.html)

carla 7

Another Cool Macro
 
S.O.S, help needed badly€¦the following macro:
For Each Worksheet In ActiveWorkbook.Worksheets
i = i + 1
If i < ActiveWorkbook.Worksheets.Count Then
Worksheets(i).Range("M6").Copy
Worksheets(ActiveWorkbook.Worksheets.Count).Cells( i, 1).PasteSpecial
Paste=xlValues
End If
Next

End Sub

will pastes values the last worksheet in the workbook vertically. I am in
severe need of a macro which will paste the values in the last worksheet in a
horizontal manner. I tried incorporating [outplace.range (€śa€ť & outrow).
PasteSpecial Paste: = xlValue, Transpose: = True] into it, but it did not
work.

All I want is for the range output to fall horizontally instead of vertically.
Can someone please help?


Jarek Kujawa[_2_]

Another Cool Macro
 
change
Worksheets(ActiveWorkbook.Worksheets.Count).Cells( i, 1).PasteSpecial
Paste:=xlValues

to

Worksheets(ActiveWorkbook.Worksheets.Count).Cells( 1, i).PasteSpecial
Paste:=xlValues


be sure to INCLUDE the colon

;-)

carla 7

Another Cool Macro
 
SUPA DUPA! I owe you big time, Thanks Again!!

"Jarek Kujawa" wrote:

change
Worksheets(ActiveWorkbook.Worksheets.Count).Cells( i, 1).PasteSpecial
Paste:=xlValues

to

Worksheets(ActiveWorkbook.Worksheets.Count).Cells( 1, i).PasteSpecial
Paste:=xlValues


be sure to INCLUDE the colon

;-)


Jarek Kujawa[_2_]

Another Cool Macro
 
"SUPA DUPA"?
now I need some assistance on this one...
what does it mean?
;-)))

Jarek Kujawa[_2_]

Another Cool Macro
 
thks a lot, Glenn
;-)

="SUPER DUPER"?

does mean much to me, either
;-)

Spiky

Another Cool Macro
 
On Aug 1, 2:58 pm, Jarek Kujawa wrote:
thks a lot, Glenn
;-)

="SUPER DUPER"?

does mean much to me, either
;-)


Super = great, wonderful
Duper....hmm, guess it rhymes with Super

And 2 words must calculate to twice as Super!


All times are GMT +1. The time now is 07:00 PM.

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