Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Stop copying down values

Hi,

I'm not sure how to modify an excel macro to stop copying down values
from adjacent column when no data found in auto-filtering.

Say, an excel macro is set to copy down data range from A3 to K50 ( ie
the last used cell ) where the auto-filtering set on header J2 to
filter out value 0 in J column.
Excel Macro will copy down values from A3 to K column last used cell
for both data found ( is value 0 ) and no data found ( ie blank
cell ) in filtering column J
How to set excel macro to stop coping down values from A3 to K column
of last used cells, for no data found in column J after filtering the
value 0

Thanks & Regards
Len
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Stop copying down values

Test the column before applying the filter

set c = columns("B").find(what:="abc", lookin:=xlvalues, lookat:=xlwhole)
if not c is nothing then
columns("B").AutoFilter Field:=1, Criteria1:="abc"
end if

end if

"Len" wrote:

Hi,

I'm not sure how to modify an excel macro to stop copying down values
from adjacent column when no data found in auto-filtering.

Say, an excel macro is set to copy down data range from A3 to K50 ( ie
the last used cell ) where the auto-filtering set on header J2 to
filter out value 0 in J column.
Excel Macro will copy down values from A3 to K column last used cell
for both data found ( is value 0 ) and no data found ( ie blank
cell ) in filtering column J
How to set excel macro to stop coping down values from A3 to K column
of last used cells, for no data found in column J after filtering the
value 0

Thanks & Regards
Len

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
Stop People Copying a Workbook Deborah Excel Discussion (Misc queries) 8 May 5th 10 03:09 PM
Stop the 'intelligent' copying? Terry Pinnell Excel Discussion (Misc queries) 2 October 26th 08 10:50 AM
Stop the 'intelligent' copying? Terry Pinnell Excel Discussion (Misc queries) 2 October 23rd 08 01:08 PM
Stop Copying at Specific Row smandula Excel Programming 7 March 28th 05 02:17 PM
A way to stop or limit copying ? Dick Kusleika Excel Programming 1 September 20th 03 07:05 PM


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