Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default Adding space to VBA code

My question is I want these values on different lines but
by default it places them all on the same line. I am
almost looking for something like in html " &nbsp" or
<br.. I hope I explained this ok.
Thanks in advance.

Dim mywdRange As Word.Range
Set mywdRange = myDoc.Words(1)
With mywdRange
.Text = Range("G6") & _
Range("G7") & _
Range("G8")
End With

  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Adding space to VBA code

Thank you for your help.

-----Original Message-----
..Text = Range("G6") & vbCrLf & _
Range("G7") & vbCrLf & _
Range("G8")


"John" wrote:

My question is I want these values on different lines

but
by default it places them all on the same line. I am
almost looking for something like in html " " or
<br.. I hope I explained this ok.
Thanks in advance.

Dim mywdRange As Word.Range
Set mywdRange = myDoc.Words(1)
With mywdRange
.Text = Range("G6") & _
Range("G7") & _
Range("G8")
End With


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding space to postal code in excel [email protected] Excel Worksheet Functions 5 August 19th 08 02:58 PM
Adding more space in a pulldown box? jcolley05 Excel Discussion (Misc queries) 2 February 18th 08 11:46 PM
Adding a space eddie57[_2_] Excel Worksheet Functions 3 August 6th 07 06:08 PM
Sorting and Adding Space Stewart Excel Worksheet Functions 2 November 16th 05 10:21 PM
Adding a space with =A59&B59 Jim Excel Worksheet Functions 1 May 17th 05 12:37 AM


All times are GMT +1. The time now is 04:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"