Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default VBA code to Fill Down in a filtered list only to visible cells.


I have a list that I need to filter so that when I create a formula and fill
down to the bottom of the list it will only fill the visible cells. I can do
this when I create the formula normally, but the recorded version of VBA code
doesn't work. Essentially, I am looking to fill down a formula to only the
visible rows/cells in column within a list. Any ideas?

Thanks in advance!
Training Goddess
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default VBA code to Fill Down in a filtered list only to visible cells.

Hi,

I'm not sure how you're currently filling down the cells, but using
SpecialCells(xlCellTypeVisible) for a range should work out.

For instance, I could write it like this:

Set rng = sht.Range(Cells(2, 3), _
Cells(10, 3)).SpecialCells(xlCellTypeVisible)
rng.Value = "yeeble"

Just replace "yeeble" with your formula, and obviously replace the range to
suit.

I hope this helps,

Sean.



--
(please remember to click yes if replies you receive are helpful to you)


"Training Goddess" wrote:


I have a list that I need to filter so that when I create a formula and fill
down to the bottom of the list it will only fill the visible cells. I can do
this when I create the formula normally, but the recorded version of VBA code
doesn't work. Essentially, I am looking to fill down a formula to only the
visible rows/cells in column within a list. Any ideas?

Thanks in advance!
Training Goddess

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
VBA code to Fill Down in a filtered list only to visible cells. Training Goddess Excel Programming 0 February 10th 09 12:18 AM
countif only visible cells (filtered) [email protected] Excel Worksheet Functions 8 August 16th 07 04:39 PM
How do I only delete/clear the visible cells in a filtered list? Merv Excel Worksheet Functions 5 March 2nd 07 07:00 PM
Code ignoring filtered (visible) tasks. Finius Eetch Excel Programming 1 December 17th 06 02:55 PM
Changing visible (filtered) cells Edwin Niemoller Excel Programming 3 June 9th 05 08:30 PM


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