Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default filter gives no output, no copying necessary of current.region

Hi,

I'm no expert in VBA, but with simple recording I have made a littl
program that selects certain records form a excel table and copy/paste
it into another file. But it is running slow, because it also copie
and pastes only the header line, when there are no records selected fo
the filter it was told to filter, this is not necessary and tim
consuming.

In my Macro I want excel to understand when it is told to filter o
something that does not exist in the excel Table it should not cop
Ctrl-*(current.region) and paste it in another file.

Is this possible. Despite buying a big book I was unable to find thi
back.

Le

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default filter gives no output, no copying necessary of current.region

Hi
have a look at
http://www.contextures.com/xlautofilter03.html#Count
to count the number of returned rows. Maybe this will help you

--
Regards
Frank Kabel
Frankfurt, Germany

Hi,

I'm no expert in VBA, but with simple recording I have made a little
program that selects certain records form a excel table and
copy/pastes it into another file. But it is running slow, because it
also copies and pastes only the header line, when there are no
records selected for the filter it was told to filter, this is not
necessary and time consuming.

In my Macro I want excel to understand when it is told to filter on
something that does not exist in the excel Table it should not copy
Ctrl-*(current.region) and paste it in another file.

Is this possible. Despite buying a big book I was unable to find this
back.

Leo


---
Message posted from http://www.ExcelForum.com/


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
Advanced Filter - Copying to location other than current sheet? Maki Excel Discussion (Misc queries) 6 January 13th 10 08:10 AM
Current region emulation daverau Excel Worksheet Functions 5 October 16th 09 04:31 AM
Copy Current Region Rohit Thomas[_2_] Excel Programming 1 December 4th 03 01:55 AM
Naming Current Region Gavin[_4_] Excel Programming 3 October 14th 03 03:38 PM


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