PC Review


Reply
Thread Tools Rate Thread

_filterdatabase

 
 
=?Utf-8?B?RGFu?=
Guest
Posts: n/a
 
      28th Jun 2007
Hi there,
Where does excel save the result of of a filterd selection, I thought it was
(for example on sheet 1) on sheet1!_filterdatabase

but when running:
Sub test1()
For Each cell In Range("sheet1!_filterdatabase")
Debug.Print cell.Value
Next cell
End Sub

I noticed it include all the table and not only the result.

Thanks
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      28th Jun 2007
A range includes all cells in it, including hidden rows. If you want just
visible rows:

Range("sheet1!_filterdatabase").SpecialCells(xlCellTypeVisible)

--
Jim
"Dan" <(E-Mail Removed)> wrote in message
news:3EEAD577-293D-4EE7-9393-(E-Mail Removed)...
| Hi there,
| Where does excel save the result of of a filterd selection, I thought it
was
| (for example on sheet 1) on sheet1!_filterdatabase
|
| but when running:
| Sub test1()
| For Each cell In Range("sheet1!_filterdatabase")
| Debug.Print cell.Value
| Next cell
| End Sub
|
| I noticed it include all the table and not only the result.
|
| Thanks


 
Reply With Quote
 
=?Utf-8?B?RGFu?=
Guest
Posts: n/a
 
      28th Jun 2007
Great

"Jim Rech" wrote:

> A range includes all cells in it, including hidden rows. If you want just
> visible rows:
>
> Range("sheet1!_filterdatabase").SpecialCells(xlCellTypeVisible)
>
> --
> Jim
> "Dan" <(E-Mail Removed)> wrote in message
> news:3EEAD577-293D-4EE7-9393-(E-Mail Removed)...
> | Hi there,
> | Where does excel save the result of of a filterd selection, I thought it
> was
> | (for example on sheet 1) on sheet1!_filterdatabase
> |
> | but when running:
> | Sub test1()
> | For Each cell In Range("sheet1!_filterdatabase")
> | Debug.Print cell.Value
> | Next cell
> | End Sub
> |
> | I noticed it include all the table and not only the result.
> |
> | Thanks
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoFilter _FilterDatabase Rowsource Listbox hgdev Microsoft Excel Programming 4 5th Mar 2004 03:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:19 PM.