Break lines

G

Greg

Hi,

I know how to break a line of code with " _" and "& _" but
neither of these seem to work in Sub SomeMacro() line.

I have one that is getting rather lengthy e.g.,:

Sub SomeMacor(pVariable As Long, ...)

Can this type of line be broken into two separate lines?

Thanks
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Greg > écrivait :
In this message, < Greg > wrote:

|| Hi,
||
|| I know how to break a line of code with " _" and "& _" but
|| neither of these seem to work in Sub SomeMacro() line.
||
|| I have one that is getting rather lengthy e.g.,:
||
|| Sub SomeMacor(pVariable As Long, ...)
||
|| Can this type of line be broken into two separate lines?
||

Something like:

'_______________________________________
Sub SomeMacro(Optional pVariable As Long, _
Optional qVariable As Long, _
Optional rVariable As Long, _
Optional etcVariable As Long)

MsgBox "Does this work?"

End Sub
'_______________________________________

'_______________________________________
Sub CallOther()

SomeMacro

End Sub
'_______________________________________

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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