Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Determining End User Actions


I have a worksheet that calls a procedure to format every other row wit
gray for readability. However if an end user sorts the worksheet tha
formatting gets all screwed up. Is there any way to determine an en
user's actions on a worksheet such as performing a sort?

I thought maybe a work around would be the SheetChange or the Chang
Event to look for a change to the worksheet and then call the forma
row procedure again.

This doesn't seem like the best solution. Can anyone suggest a bette
way

--
rayd
-----------------------------------------------------------------------
rayd8's Profile: http://www.excelforum.com/member.php...fo&userid=2626
View this thread: http://www.excelforum.com/showthread.php?threadid=39917

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Determining End User Actions

Look at Chip Pearson's page no this topic.

http://www.cpearson.com/excel/banding.htm

--
Regards,
Tom Ogilvy


"rayd8" wrote in
message ...

I have a worksheet that calls a procedure to format every other row with
gray for readability. However if an end user sorts the worksheet that
formatting gets all screwed up. Is there any way to determine an end
user's actions on a worksheet such as performing a sort?

I thought maybe a work around would be the SheetChange or the Change
Event to look for a change to the worksheet and then call the format
row procedure again.

This doesn't seem like the best solution. Can anyone suggest a better
way?


--
rayd8
------------------------------------------------------------------------
rayd8's Profile:

http://www.excelforum.com/member.php...o&userid=26267
View this thread: http://www.excelforum.com/showthread...hreadid=399175



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Determining End User Actions

You would be better off with a conditional format that reference the row
number and highlights all oof the odd rows Gray... Use the following formula

=MOD(ROW(), 2)

in the formula for the conditional formatting.
--
HTH...

Jim Thomlinson


"rayd8" wrote:


I have a worksheet that calls a procedure to format every other row with
gray for readability. However if an end user sorts the worksheet that
formatting gets all screwed up. Is there any way to determine an end
user's actions on a worksheet such as performing a sort?

I thought maybe a work around would be the SheetChange or the Change
Event to look for a change to the worksheet and then call the format
row procedure again.

This doesn't seem like the best solution. Can anyone suggest a better
way?


--
rayd8
------------------------------------------------------------------------
rayd8's Profile: http://www.excelforum.com/member.php...o&userid=26267
View this thread: http://www.excelforum.com/showthread...hreadid=399175


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Determining End User Actions


Hmmm.... Thanks for the replies I am going to have to investigate you
recommendations. I haven't used formulas in VBA code before so I've go
some studying to do.

I liked my VBA procedure because it only formats the range tha
contains data. The spreadsheet with the VBA code creates anothe
workbook and then imports and formats a text file so I never know th
range of the data.

Thanks for the tip

--
rayd
-----------------------------------------------------------------------
rayd8's Profile: http://www.excelforum.com/member.php...fo&userid=2626
View this thread: http://www.excelforum.com/showthread.php?threadid=39917

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
want user to input informartion to control mnacro actions looker Excel Discussion (Misc queries) 1 March 2nd 09 04:16 PM
User initiated break/actions during macro execution mbarron Excel Programming 1 September 29th 04 05:35 PM
determining coordinates for screen placement of user form PatFinegan[_10_] Excel Programming 2 January 31st 04 09:03 PM
Determining Last User Action COM Excel Programming 2 December 29th 03 03:21 PM
Determining end of user-selected range Syed Faisal Excel Programming 2 October 23rd 03 05:22 PM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"