VBA to find column header through Msg Box

  • Yes, sent you a PM

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Hi KjBox, hope you're doing good..


    I'm getting error when running this code and found the root cause as "Header is not string". Its actually value.


    Please help.


    Thanks!!

  • Attach your workbook which is giving error

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Try the attached.


    I have done away with the Input Box. Enter the required updating data in cells C3 to C6 on the Input sheet.


    There is no need to have a list of the sheet names, the Data Validation List for C3 will update according to the actual workbook sheets as soon as C3 is selected, the C4 Data Validation List will update according to the Sheet selection.


    The Currency can be entered as lower or upper case (AED or aed), the code will convert it to Upper Case


    Note C3 to C6 are now Named Ranges.


    There is code in the Worksheet Object Module for Input Sheet to updating the Data Validation.

  • You're welcome

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!