Hello everyone. Happy Holidays! I promise that I've spent hours searching for a solution to my Excel vba/macro issue. I've also attempted using information found in this forum and other excel vba forums to string together a viable script, but to no avail.
Objective: to select a named column from a range of columns based on a cell's value and to hide remaining columns from the range of columns.
Facts:
1. A worksheet consists of 51 columns.
2. Column A consists of a listing of factoids/characteristics.
3. Columns B through AY is a named range = "State"
4. 'Name Box' was used to assign a state to a column. For example, Column B is named Alabama, Column C is named Alaska, and so on).
2. Cell reference A1 is where a user is to enter the name of a state, such as Alaska, Maine, Texas, etc., to view applicable factoids/characteristics
3. When running the macro, column A will always remain unhidden, the column corresponding to the state referenced in cell A1 will remain unhidden but the remaining columns defined by range "State" will be hidden
I hope I have entered enough information to solicit a response. Your help is appreciated. Thank you.
Objective: to select a named column from a range of columns based on a cell's value and to hide remaining columns from the range of columns.
Facts:
1. A worksheet consists of 51 columns.
2. Column A consists of a listing of factoids/characteristics.
3. Columns B through AY is a named range = "State"
4. 'Name Box' was used to assign a state to a column. For example, Column B is named Alabama, Column C is named Alaska, and so on).
2. Cell reference A1 is where a user is to enter the name of a state, such as Alaska, Maine, Texas, etc., to view applicable factoids/characteristics
3. When running the macro, column A will always remain unhidden, the column corresponding to the state referenced in cell A1 will remain unhidden but the remaining columns defined by range "State" will be hidden
I hope I have entered enough information to solicit a response. Your help is appreciated. Thank you.