Jak
Well-known Member
- Joined
- Apr 5, 2002
- Messages
- 833
Hi All
I am looking for a bit of VB code to add to a project. The purpose is to display the Title Row Heading based on the Active Cell in a text box on my userform.
Example:
On a spreadsheet, Range ("F1:AS1") has the following titles; Q1, Q2, Q3 etc up to Q40. If the user selects cell F2 then Q1 would be displayed in the textbox. If J19 is selected the Q5 would be displayed. If a cell outside the range ("F:AS") is selected then the textbox should be blank.
Any help with some VB would be greatly appreciated.
Thanks
I am looking for a bit of VB code to add to a project. The purpose is to display the Title Row Heading based on the Active Cell in a text box on my userform.
Example:
On a spreadsheet, Range ("F1:AS1") has the following titles; Q1, Q2, Q3 etc up to Q40. If the user selects cell F2 then Q1 would be displayed in the textbox. If J19 is selected the Q5 would be displayed. If a cell outside the range ("F:AS") is selected then the textbox should be blank.
Any help with some VB would be greatly appreciated.
Thanks