ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run macro on columns with a "defined name" (https://www.excelbanter.com/excel-programming/393050-run-macro-columns-defined-name.html)

johan

Run macro on columns with a "defined name"
 
Hello,
I think this is een easy question, but I can't find the answer.

In Excel I had defined names on columns (insert - define name).
For example: Name = test Refers to = $B:$C.
Now I want with a macro that hide the column with the defined name
"test".

regards,
Johan


Tom Ogilvy

Run macro on columns with a "defined name"
 
Range("Test").EntireColumn.Hidden = True

--
regards,
Tom Ogilvy


"johan" wrote:

Hello,
I think this is een easy question, but I can't find the answer.

In Excel I had defined names on columns (insert - define name).
For example: Name = test Refers to = $B:$C.
Now I want with a macro that hide the column with the defined name
"test".

regards,
Johan




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

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