Hello all,
I purchased VBA and Macros from the Mr Excel library and another book of macros, and have used this forum as a lurker for a couple of weeks, and while I have successfully taught myself to program a command button to work properly I'm still stuck on a few issues here and was hoping someone could guide me a bit.
I have a Workbook that the users will copy to use for each "incident" that they travel out to. The Workbook is made up of three tabs to being with. The first tab is labeled "Templates", the second tab is labeled "Totals" and the third tab is labeled Sheet 3 when the user initially opens up their copy of the workbook. I will eventually make the "Templates" tab hidden, but I'm still building this workbook so it's still visible.
My Issue:
Sheet 3 initially shows a matrix that is a duplicate of a matrix on the "Templates" page. (A1:AN19). There are 5 merged cells as Cell A10 (A10:E10). This is a blank cell that I want the user to input the name of the County or City and the day of assessment into (e.g. King County - Day 3). I want the tab of the sheet (NOT the "Templates" sheet, but just Sheet 3 and any other sheets that are added later) to be named whatever is typed into the A10 cell. Theoretically you may have a workbook with the first two tabs as "Templates" and "Totals" and then perhaps 10 or so other tabs that are each labeled with different cities/counties and days. (e.g. King County -Day 1; King County - Day 2; Smith County - Day 1; Tolbert County - Day 1; etc.) I can't seem to get any code to work for this one task that would seem to me to be fairly simple. I've tried using bits of code that I have found in these forums and have put it into the "This Workbook" level of Objects; into the different "Sheet" levels of Objects, but nothing seems to work at all. Any help would be greatly appreciated. It would be REALLY helpful if you also explained the "why" of what I need to do so I can learn from this.
Thank you for at least taking a look!
-JT
I purchased VBA and Macros from the Mr Excel library and another book of macros, and have used this forum as a lurker for a couple of weeks, and while I have successfully taught myself to program a command button to work properly I'm still stuck on a few issues here and was hoping someone could guide me a bit.
I have a Workbook that the users will copy to use for each "incident" that they travel out to. The Workbook is made up of three tabs to being with. The first tab is labeled "Templates", the second tab is labeled "Totals" and the third tab is labeled Sheet 3 when the user initially opens up their copy of the workbook. I will eventually make the "Templates" tab hidden, but I'm still building this workbook so it's still visible.
My Issue:
Sheet 3 initially shows a matrix that is a duplicate of a matrix on the "Templates" page. (A1:AN19). There are 5 merged cells as Cell A10 (A10:E10). This is a blank cell that I want the user to input the name of the County or City and the day of assessment into (e.g. King County - Day 3). I want the tab of the sheet (NOT the "Templates" sheet, but just Sheet 3 and any other sheets that are added later) to be named whatever is typed into the A10 cell. Theoretically you may have a workbook with the first two tabs as "Templates" and "Totals" and then perhaps 10 or so other tabs that are each labeled with different cities/counties and days. (e.g. King County -Day 1; King County - Day 2; Smith County - Day 1; Tolbert County - Day 1; etc.) I can't seem to get any code to work for this one task that would seem to me to be fairly simple. I've tried using bits of code that I have found in these forums and have put it into the "This Workbook" level of Objects; into the different "Sheet" levels of Objects, but nothing seems to work at all. Any help would be greatly appreciated. It would be REALLY helpful if you also explained the "why" of what I need to do so I can learn from this.
Thank you for at least taking a look!
-JT