LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default array-to-row autofilter issue

Autofilter can give problems if a range containing both filtered and
unfiltered rows is being manipulated in a macro. So, in order to solve that,
I went back and added code to check which rows were hidden before running the
macros. It was tedious.

However, even changing cells one row at a time causes problems. I am
copying an array to a (single) row of cells, in order to reduce macro run
time. However, if some of the columns being edited are hidden (ordinary
hidden, not in relation to the autofilter), the copied values turn to mush.
This only happens if autofilter is on and the row is not hidden. Is there
any explanation or workaround?

If there isn't, then the bottom line is that some macros just can't be run
when autofilter is on, which imo is ridiculous. I seriously hope the way
autofilter affects the ranges in macros (by filtering out the hidden cells)
was not an intentional decision by Microsoft. That is *assuming* that the
only relevant cells are the ones currently visible- an assumption which, if
true, mildly simplifies the code, and, if false, completely breaks it. The
autofilter is a *UI* toggle feature. Since when is it okay to let UI
features deeply affect all other business code? And then why don't
'ordinary' hidden cells also create these problems? My background macros
have nothing to do with whatever the user has decided to filter for viewing.
Why did Microsoft decide to violate the tier separations? There should be
some option for being able to have your macros run as normal.

The standard answer seems to be just turn to autofilter off before a macro
run, which is fine, if the users don't mind their autofilters randomly being
erased everytime a macro runs in the background.

 
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
AutoFilter Issue R NG[_2_] Excel Programming 2 September 4th 09 03:12 PM
get value from last row of an autofilter array Christa Excel Worksheet Functions 2 April 10th 08 07:28 PM
Issue with Autofilter and Pictures J_Mori Excel Discussion (Misc queries) 3 April 20th 07 09:22 PM
Autofilter Issue PWS Excel Worksheet Functions 3 April 18th 07 04:23 PM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Excel Programming 0 July 27th 05 03:59 PM


All times are GMT +1. The time now is 01:25 PM.

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"