Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Transpose in Reverse

John,
There should only be one dot in front of "range".
The dot ties the range to the sheet object in the "With" statement.

'For instance...
With Sheets(2)
.Range("A1").Value = 10
End With

'Is the same as...
Sheets(2).Range("A1").Value = 10

Again, please note that the Conditional Formatting in cells does not sort.
--
Jim Cone
Portland, Oregon USA



"Brenner"
wrote in message
Hi Jim -

Thanks for the response! I'm not sure what to do with the bottom section of
your code. Wherever I have ..Range - it all comes out in red. I haven't used
...Range before and am not sure how to deal with it. Just a hint is proly all
I need.
Again, thanks for taking the time...
John


(This part...)
'Add values for AutoFill
With Sheets("CRP Status")
...Range(.Cells(firstRow, destCol + 1), .Cells(firstRow + 1,
destCol + 1)).Value = Application.Transpose(Array(1, 2))

'AutoFill
...Range(.Cells(firstRow, destCol + 1), .Cells(firstRow + 1, _
destCol + 1)).AutoFill Destination:=.Range(.Cells(6, destCol + 1), _
.Cells(LastCol - FirstCol + firstRow, destCol + 1)), Type:=xlFillSeries

'Sort
...Range(.Cells(firstRow, 3), .Cells(LastCol - FirstCol + firstRow, _
destCol + 1)).Sort key1:=.Columns(destCol + 1), order1:=xlDescending

'Clear autofilled column
...Columns(destCol + 1).ClearContents

--
Cool

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
Reverse Transpose? sdmfg Excel Worksheet Functions 5 April 3rd 23 02:14 PM
how paste transpose reverse? Ian Elliott Excel Discussion (Misc queries) 2 September 19th 08 01:24 AM
How do I transpose the figures to go in reverse order in a bar gr. sfb Charts and Charting in Excel 1 July 22nd 08 11:30 AM
reverse value Mike Excel Worksheet Functions 0 March 28th 07 12:08 AM
I WANT TO TRANSPOSE LINKS, AS WE TRANSPOSE VALUES Umair Aslam Excel Worksheet Functions 1 September 22nd 05 01:19 PM


All times are GMT +1. The time now is 01:18 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"