Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I sort values only, and leave formats?

Hey All, I have ranges I need to sort constantly and I have programmed them
all with macros, however, I have alot of formating that falls apart when I
sort...is there a way similar to pasting special w/values, to sort values
only?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How do I sort values only, and leave formats?

copy it to another worksheet
sort the copy
copy back with pastespecial values.

--
Regards,
Tom ogilvy

"havocdragon" wrote:

Hey All, I have ranges I need to sort constantly and I have programmed them
all with macros, however, I have alot of formating that falls apart when I
sort...is there a way similar to pasting special w/values, to sort values
only?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I sort values only, and leave formats?

Yeah thats the same idea I came up with =). Thought there might be a better
way.

Is there a way to run this macro without forcing the user to sit through the
light show? For example, they just see the data sort, without watching the
excel workbook bouncing back and forth through different sheets, or different
ranges?

"Tom Ogilvy" wrote:

copy it to another worksheet
sort the copy
copy back with pastespecial values.

--
Regards,
Tom ogilvy

"havocdragon" wrote:

Hey All, I have ranges I need to sort constantly and I have programmed them
all with macros, however, I have alot of formating that falls apart when I
sort...is there a way similar to pasting special w/values, to sort values
only?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I sort values only, and leave formats?


Try Application.ScreenUpdating = False????
put it somewhere in the beginning of your code..

--
pikapika1
-----------------------------------------------------------------------
pikapika13's Profile: http://www.excelforum.com/member.php...fo&userid=1089
View this thread: http://www.excelforum.com/showthread.php?threadid=57087

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I sort values only, and leave formats?

Awesome that works

"pikapika13" wrote:


Try Application.ScreenUpdating = False????
put it somewhere in the beginning of your code...


--
pikapika13
------------------------------------------------------------------------
pikapika13's Profile: http://www.excelforum.com/member.php...o&userid=10892
View this thread: http://www.excelforum.com/showthread...hreadid=570875




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I sort values only, and leave formats?

A more effective alternative would be to write your code so it doesn't
select and activate.

--
Regards,
Tom Ogilvy


"havocdragon" wrote in message
...
Awesome that works

"pikapika13" wrote:


Try Application.ScreenUpdating = False????
put it somewhere in the beginning of your code...


--
pikapika13
------------------------------------------------------------------------
pikapika13's Profile:
http://www.excelforum.com/member.php...o&userid=10892
View this thread:
http://www.excelforum.com/showthread...hreadid=570875




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I sort values only, and leave formats?

Thanks Tom this works out great.

Just out of curiosity, how would I do this if the array values were in a
range of cells?

"Tom Ogilvy" wrote:

A more effective alternative would be to write your code so it doesn't
select and activate.

--
Regards,
Tom Ogilvy


"havocdragon" wrote in message
...
Awesome that works

"pikapika13" wrote:


Try Application.ScreenUpdating = False????
put it somewhere in the beginning of your code...


--
pikapika13
------------------------------------------------------------------------
pikapika13's Profile:
http://www.excelforum.com/member.php...o&userid=10892
View this thread:
http://www.excelforum.com/showthread...hreadid=570875





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
Can I use Sort to alphabetize & leave blank row bet. rows (2003) Sandy New Users to Excel 4 May 18th 08 05:31 PM
How do I sort collumns and leave out pictures in rows not used? TobyS. Excel Worksheet Functions 0 March 11th 08 10:16 PM
Can I sort values only & leave orginal cell formatting? Alyssa Excel Discussion (Misc queries) 1 March 8th 06 04:26 AM
Can I sort in Excel and leave the formatting (color) in place? krolfe Excel Discussion (Misc queries) 1 January 12th 06 03:16 PM
Can you sort text in a column, but leave cell color alone? g wills New Users to Excel 4 December 3rd 04 10:42 AM


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