I have searched the web, the forum etc. and perhaps I'm just looking in the wrong place so if somebody can either answer this question or point me in the right direction I would be eternally grateful.
I am using excel (Office XP).
I have used vba to produce a wizard which allows the user to enter data. This data is then entered into a log and can also be copied into a pro-forma which can be printed to produce a hard copy.
I am using a number of multiline textboxes as part of the data entry (there is no alternative due to the nature of the data). When this data is transferred to the form, I need a way to control how many lines are entered into the form and then transfer the rest of the data to another pro-forma ("the continuation sheet"). I have been looking at the sendmessage API function to allow me to manipulate the lines of data in the multiline textbox. The problem is that I need to establish the handle of the textbox and the "hwnd" property does not work in vba (only vb). Is there an alternative?
I am using excel (Office XP).
I have used vba to produce a wizard which allows the user to enter data. This data is then entered into a log and can also be copied into a pro-forma which can be printed to produce a hard copy.
I am using a number of multiline textboxes as part of the data entry (there is no alternative due to the nature of the data). When this data is transferred to the form, I need a way to control how many lines are entered into the form and then transfer the rest of the data to another pro-forma ("the continuation sheet"). I have been looking at the sendmessage API function to allow me to manipulate the lines of data in the multiline textbox. The problem is that I need to establish the handle of the textbox and the "hwnd" property does not work in vba (only vb). Is there an alternative?