Another Cool Macro

C

carla 7

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?
 
J

Jarek Kujawa

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

;-)
 
J

Jarek Kujawa

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

Spiky

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top