Hello,
I would like to write protocols in Excel to be able to store them all in the same file. What I haven't thought about is that the line breaks are adjusted strictly between the lines, which means that longer texts increase the line height so much that the text is moved to the next page. This means that virtually all pages contain too much empty space of rows.
Hence I have looked at the possibility of using the method justify in VBA, but the problem is that it only regulates up to 255 characters and discards the rest. Is there a way to bypass this with VBA? I want to store everything that is written in B1 in a named variable 'MyText' and ensure that VBA then picks out whole words up to the maximum limit of 255 characters, which then spills out to the cells below. After that to pick the next 255 characters from the MyText variable and then continue spilling where the previous string left off.
In Excel, I think the formula could look something like this, however, this is not with full words and without knowing in which row to put the next function:
LEFT(B1,255)
MID(B1,255+1,255)
MID(B1,255+255+1,255)
Is there anyone who had made a solution to this before or know how to do this in VBA?
Best regards
Tim
Bookmarks