ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VBA code question (https://www.excelbanter.com/excel-discussion-misc-queries/219150-vba-code-question.html)

peyman

VBA code question
 
hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,

Jim Cone[_2_]

VBA code question
 
Cells.AutoFilter Field:=2
--
Jim Cone
Portland, Oregon USA

"peyman"

wrote in message
hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,

Don Guillett

VBA code question
 
Just recorded

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 2/4/2009 by Donald B. Guillett
'

'
Selection.AutoFilter Field:=3
Selection.AutoFilter Field:=2
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"peyman" wrote in message
...
hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some
specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,



peyman

VBA code question
 
thank you very much

"Don Guillett" wrote:

Just recorded

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 2/4/2009 by Donald B. Guillett
'

'
Selection.AutoFilter Field:=3
Selection.AutoFilter Field:=2
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"peyman" wrote in message
...
hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some
specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,




peyman

VBA code question
 
thax a lot

"Jim Cone" wrote:

Cells.AutoFilter Field:=2
--
Jim Cone
Portland, Oregon USA

"peyman"

wrote in message
hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,


FSt1

VBA code question
 
hi
i doubt that you can. technically excels "filters" by hiding rows. and it's
not possible to hide or unhide part of a row (or column).

Regards
FSt1

"peyman" wrote:

hi,
How can I limit this code Worksheets("sheet 1").ShowAllData to some specific
columns like B & C istead of unfiltering whole the worksheet.
Thanx,



All times are GMT +1. The time now is 02:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com