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: 55
Default Filters and dynamic ranges

I have recorded a VBA routine that uses the Advanced filter (activated from
the menu) to filter a dynamic range with 5 columns and around 300 rows of
data. It then copies the filtered data and pastes it into a another location.
The problem is, if the filter comes up empty, instead of pasting one row of
nothing, the cut and paste part of the procedure pastes 300 rows of "#ref"
into the location. In this case writing over my database... Anyone have an
idea about how to avoid this happening if the filtered data is an empty set?
Thanks in advance,
RD Wirr
 
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
Dynamic Ranges patrick Excel Discussion (Misc queries) 2 July 22nd 07 04:53 AM
protect cell ranges in spreadsheet and have data filters on prizm Excel Discussion (Misc queries) 0 September 5th 06 08:50 PM
protect cell ranges in spreadsheet and have data filters on prizm Excel Worksheet Functions 2 September 1st 06 11:12 PM
Dynamic Ranges JackR Excel Discussion (Misc queries) 2 February 23rd 06 06:25 PM
Dynamic Formulas with Dynamic Ranges Ralph Howarth Excel Worksheet Functions 5 January 21st 05 08:44 AM


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