L
Lucas
Hello all,
I wrote program which uses data from sheet, than desplays data on the
userform and then prints data. User has to point which data should be
printed, data is transfered to text boxes on the particular sheet and then
printed. The point is that some data can't be put into textboxes on sheet
using vb. Ofcourse manually it is not a problem.
code that transfers data from userform to sheet looks like this:
info = UserForm5.TextBox1.Value
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, Left1, top1,
Width1, height_box).Select
Selection.Characters.Text = info
For some reasons in some cases code works just fine and in some it doesen't.
At the begining i thought that it is connected with number of characters
that can be placed in text box but then, if the number of characters would be
to big, there will be no possibility of placing them manually. I'm sure that
data is every time in 'info' variable. Any ideas.
Thanks in advance.
I wrote program which uses data from sheet, than desplays data on the
userform and then prints data. User has to point which data should be
printed, data is transfered to text boxes on the particular sheet and then
printed. The point is that some data can't be put into textboxes on sheet
using vb. Ofcourse manually it is not a problem.
code that transfers data from userform to sheet looks like this:
info = UserForm5.TextBox1.Value
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, Left1, top1,
Width1, height_box).Select
Selection.Characters.Text = info
For some reasons in some cases code works just fine and in some it doesen't.
At the begining i thought that it is connected with number of characters
that can be placed in text box but then, if the number of characters would be
to big, there will be no possibility of placing them manually. I'm sure that
data is every time in 'info' variable. Any ideas.
Thanks in advance.