How to repeat a character?

W

wdsnews

First, is there a syntax book I can buy similar to the syntax manuals we
used to get with programming languages? I'm new to VBA. I'd appreciate
your suggestion on a book that is more reference and less tutorial. (BTW,
I've found a couple of tutorial books I really like. So now I need a
reference.)

Is there a function that repeats a specific character a given number of
times similar to the way the Space(x) function repeats the space character a
given number of times?

thanks for your help.
 
F

fredg

First, is there a syntax book I can buy similar to the syntax manuals we
used to get with programming languages? I'm new to VBA. I'd appreciate
your suggestion on a book that is more reference and less tutorial. (BTW,
I've found a couple of tutorial books I really like. So now I need a
reference.)

Is there a function that repeats a specific character a given number of
times similar to the way the Space(x) function repeats the space character a
given number of times?

thanks for your help.

Look up the String() function in VBA Help.

=String(10,"X")
will return "XXXXXXXXXX"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top