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/197135-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?


----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions


All times are GMT +1. The time now is 04:27 AM.

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