![]() And then click OK button, another box will pop out to remind you select a cell to put the result, see screenshot:ĥ. Then press F5 key to run this code, and a prompt box will pop out to remind you select the cell values that you want to split vertically, see screenshot:Ĥ. Set xOutRg = Application.InputBox("please select output cell:", "Kutools for Excel",, ,, ,, 8) Set xRg = Application.InputBox("please select the data range:", "Kutools for Excel", xTxt,, ,, , 8) VBA code: Split cell values into rows vertically by specific separator Sub splitvertically() Click Insert > Module, and paste the following code in the Module Window. ![]() Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. The following VBA code can help you to split the cell values into rows vertically by any separator as you want, please do as follows:ġ. Split cell values into rows vertically by separator with Kutools for Excel Split cell values into rows vertically by separator with VBA code And this article, I will talk about some quick ways to split the cell values into rows vertically by specific separator in Excel. In Excel, you may apply the Text to Columns feature to split the cell values into multiple columns horizontally, but, it does not help you to split the cell contents into multiple rows vertically. How to split cell values vertically in Excel?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |