I am having a hard time trying to figure out how to split cells in Excel. My dillemma is I have a column heading and then need two sub headings. Any and all help would be great.
Perhaps if your header has a space or something you can put between the two sub headings then the following would work. You would need to put getStrItem(strData, iPosition, strDelim) in the relevant cells where you wanted the split, strDelim is "_" or "." (to split the two sub headings out of the heading.
Function getStrItem(strData, iPosition, strDelim) As String 'Return the data in position iPosition of the string
Don't know if this is what you need but it may be of some help. I would not use this function if you have loads of headings to split because it can get quite slow.
Cheers, Alistair
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.