ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Syntax help (https://www.excelbanter.com/excel-programming/441458-syntax-help.html)

Graham[_2_]

Syntax help
 
I would value help with below. The first part is what I want to do and
what is there works fine. However because of the procedure where
locations are variable eg Cells (n, ccount) etc I need to use the syntax
on the second procedure and I am unsure of how to enter this and would
appreciate any guidance.

Graham

Range("AF1:AG10").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range("AF14:AG14"), Unique:=True

Range(cells(1,32),cells(9,33)).AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range(Cells(13,32),cells(13,33)), Unique:=True

Don Guillett[_2_]

Syntax help
 
n=4
ncount=4
cells(n,ncount)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Graham" wrote in message
...
I would value help with below. The first part is what I want to do and what
is there works fine. However because of the procedure where locations are
variable eg Cells (n, ccount) etc I need to use the syntax on the second
procedure and I am unsure of how to enter this and would appreciate any
guidance.

Graham

Range("AF1:AG10").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range("AF14:AG14"), Unique:=True

Range(cells(1,32),cells(9,33)).AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range(Cells(13,32),cells(13,33)), Unique:=True




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

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