Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default autofilter/cell selection problems

Hello,

I have a little program that needs to run on a sheet that has multiple user
information on it. The users go in and use the auto filter funtion so that
they only view the information important to them. When this program runs and
they select the cells they want (They often drag the mouse over a range that
may have hidden ranges within it) the program selects hidden cells aswell.
Is there a way that it will only select the ranges that are selected and
viewable:

Here is the code I'm using for this section of the program:

Dim rCells As Range
Dim rRange As Range
Dim rstart As Range
Dim ireply As Integer
Dim strStart As String

On Error Resume Next
'Let the user choose the cells with the drawings that will appear on the
Draw. Ack.
Set rCells = Application.InputBox _
(Prompt:="Select the drawings you wish to appear on the Drawing
Acknowledgement", _
Title:="Create Drawing Acknowledgement", Left:=558, Type:=8)
For Each rRange In rCells...

Thanks,
Jordan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default autofilter/cell selection problems

I think you want to use:
Selection.SpecialCells(xlCellTypeVisible).Select

--
steveB

Remove "AYN" from email to respond
"Jordan" wrote in message
...
Hello,

I have a little program that needs to run on a sheet that has multiple
user
information on it. The users go in and use the auto filter funtion so
that
they only view the information important to them. When this program runs
and
they select the cells they want (They often drag the mouse over a range
that
may have hidden ranges within it) the program selects hidden cells aswell.
Is there a way that it will only select the ranges that are selected and
viewable:

Here is the code I'm using for this section of the program:

Dim rCells As Range
Dim rRange As Range
Dim rstart As Range
Dim ireply As Integer
Dim strStart As String

On Error Resume Next
'Let the user choose the cells with the drawings that will appear on the
Draw. Ack.
Set rCells = Application.InputBox _
(Prompt:="Select the drawings you wish to appear on the Drawing
Acknowledgement", _
Title:="Create Drawing Acknowledgement", Left:=558, Type:=8)
For Each rRange In rCells...

Thanks,
Jordan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default autofilter/cell selection problems

Thanks Steve, thats what I needed.

"STEVE BELL" wrote:

I think you want to use:
Selection.SpecialCells(xlCellTypeVisible).Select

--
steveB

Remove "AYN" from email to respond
"Jordan" wrote in message
...
Hello,

I have a little program that needs to run on a sheet that has multiple
user
information on it. The users go in and use the auto filter funtion so
that
they only view the information important to them. When this program runs
and
they select the cells they want (They often drag the mouse over a range
that
may have hidden ranges within it) the program selects hidden cells aswell.
Is there a way that it will only select the ranges that are selected and
viewable:

Here is the code I'm using for this section of the program:

Dim rCells As Range
Dim rRange As Range
Dim rstart As Range
Dim ireply As Integer
Dim strStart As String

On Error Resume Next
'Let the user choose the cells with the drawings that will appear on the
Draw. Ack.
Set rCells = Application.InputBox _
(Prompt:="Select the drawings you wish to appear on the Drawing
Acknowledgement", _
Title:="Create Drawing Acknowledgement", Left:=558, Type:=8)
For Each rRange In rCells...

Thanks,
Jordan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default autofilter/cell selection problems

Jordan,

You're welcome...

keep on Exceling...

--
steveB

Remove "AYN" from email to respond
"Jordan" wrote in message
...
Thanks Steve, thats what I needed.

"STEVE BELL" wrote:

I think you want to use:
Selection.SpecialCells(xlCellTypeVisible).Select

--
steveB

Remove "AYN" from email to respond
"Jordan" wrote in message
...
Hello,

I have a little program that needs to run on a sheet that has multiple
user
information on it. The users go in and use the auto filter funtion so
that
they only view the information important to them. When this program
runs
and
they select the cells they want (They often drag the mouse over a range
that
may have hidden ranges within it) the program selects hidden cells
aswell.
Is there a way that it will only select the ranges that are selected
and
viewable:

Here is the code I'm using for this section of the program:

Dim rCells As Range
Dim rRange As Range
Dim rstart As Range
Dim ireply As Integer
Dim strStart As String

On Error Resume Next
'Let the user choose the cells with the drawings that will appear on
the
Draw. Ack.
Set rCells = Application.InputBox _
(Prompt:="Select the drawings you wish to appear on the Drawing
Acknowledgement", _
Title:="Create Drawing Acknowledgement", Left:=558, Type:=8)
For Each rRange In rCells...

Thanks,
Jordan






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
Cell selection problems in Excel Bill in Maine Excel Discussion (Misc queries) 1 June 18th 09 05:50 AM
Chart Title Using Autofilter Selection Roger Charts and Charting in Excel 6 December 1st 08 01:59 PM
Problems using autofilter Smudge Excel Discussion (Misc queries) 3 October 16th 07 12:23 PM
How do I save an autofilter selection as a new file? IrishLacey Excel Worksheet Functions 1 January 12th 07 08:26 PM
Paste into autofilter selection! HenrikB Excel Worksheet Functions 1 September 21st 06 09:29 AM


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