bsnell1993
New Member
- Joined
- Dec 5, 2019
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Hello,
I work for a construction company that does a variety of different projects, and we are trying to streamline our bidding document to cover all city locations as well as all types of projects that we construct. I am trying to create a VBA that renames the worksheet tabs based on the type of project that it is. i.e. Multi Family, Commercial, Fit Up, or Mixed Use. I have a single sheet that serves as the project information sheet which has a Data Validation list in Cell "C15" which allows us to select "A-D" which corresponds to the types of projects we do. i.e. A=Multifamily, B=Commercial, C=Fit Up, D=Mixed Use. I would like to be able to select the respective data validation that corresponds to the type of project that we are doing and have it change the names of my worksheets. However my worksheets are also named uniquely i.e. - "Multifamily", "Multifamily GC's", & "Multifamily - Take off" There are more tabs, but they do not need to be renamed.
Everything I have found online either changes the worksheet name according to what is in that individual cell that i am trying to reference (C15=A therefore Worksheet name =A)or it is a repetition of the cell value with ascending numbers ( Multifamily1, Multifamily2, Multifamily3, Etc. ). So i am in a little bit of an odd spot. I also do not have a lot of VBA or Macro experience, just what i have been able to find on google & stumble through.
I know the data validation (letter = the type of project) makes it a bit more difficult, but there are a lot of other equations that are dictated by the data validation Letter that makes me not want to change it.
If anyone can help me try to write VBA/ Macro code for this it would be greatly appreciated.
I work for a construction company that does a variety of different projects, and we are trying to streamline our bidding document to cover all city locations as well as all types of projects that we construct. I am trying to create a VBA that renames the worksheet tabs based on the type of project that it is. i.e. Multi Family, Commercial, Fit Up, or Mixed Use. I have a single sheet that serves as the project information sheet which has a Data Validation list in Cell "C15" which allows us to select "A-D" which corresponds to the types of projects we do. i.e. A=Multifamily, B=Commercial, C=Fit Up, D=Mixed Use. I would like to be able to select the respective data validation that corresponds to the type of project that we are doing and have it change the names of my worksheets. However my worksheets are also named uniquely i.e. - "Multifamily", "Multifamily GC's", & "Multifamily - Take off" There are more tabs, but they do not need to be renamed.
Everything I have found online either changes the worksheet name according to what is in that individual cell that i am trying to reference (C15=A therefore Worksheet name =A)or it is a repetition of the cell value with ascending numbers ( Multifamily1, Multifamily2, Multifamily3, Etc. ). So i am in a little bit of an odd spot. I also do not have a lot of VBA or Macro experience, just what i have been able to find on google & stumble through.
I know the data validation (letter = the type of project) makes it a bit more difficult, but there are a lot of other equations that are dictated by the data validation Letter that makes me not want to change it.
If anyone can help me try to write VBA/ Macro code for this it would be greatly appreciated.