Ask Your Question

writer, macro, sub, inputbox, print string [closed]

asked 2014-05-14 18:27:30 +0200

altair gravatar image

updated 2014-05-15 11:20:04 +0200

Hello! I want a sub (macro) to print me string I put in the Inputbox.

Please, how do I write the sub code?

I tried:

sub y
Dim String1 as String
InputBox("Write the  string", "Box Tittle")
print Mystring
end sub

But it was not what I wanted. I want the macro to print in writer as normal text in writer the text I write in InputBox.

Please, all the advices would help!!! I just want the string Mystring to be the string I input by InputBox, and nothing else, no icon- no box!!!!!

Many thanks!!!

p.s The task is that we INPUt a string and the macro outputs the string's lenght

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-22 17:45:58.443839



Why don't you type your text directly to writer document?

mahfiaz gravatar imagemahfiaz ( 2014-05-14 23:03:09 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-05-15 16:05:06 +0200

altair gravatar image

HELLO, KAROLUS! MANY THAKNS!!! Please, is there any good link about this area? I am trying to google some, but as I am not english sepaking I am not sure I have chosen the right keywords! many thanks!!!

edit flag offensive delete link more


libreoffice basic string length, libreoffice basic show message in a box

mahfiaz gravatar imagemahfiaz ( 2014-05-15 20:55:40 +0200 )edit

Question Tools

1 follower


Asked: 2014-05-14 18:27:30 +0200

Seen: 323 times

Last updated: May 15 '14