Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Office > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-09-2009, 10:38 AM
streng streng is offline Windows XP Office 2007 (Version 12.0)
Novice
 
Join Date: Sep 2008
Posts: 12
streng is on a distinguished road
Default Multi Line Bookmark

Is there any way I can move to the next line within a bookmark in vba

The code I have is as follows but I need the Address to be on new lines.

Code:
If ComboBox1.Value <> "Building Control Letter" Then
    Set rngBookmark = .Bookmarks("Address").Range
        .Bookmarks("Address").Delete
        rngBookmark.Text = "Address #1" & "Address #2" & "Address #3" & "Address #4" & "Address #5" & "Address #6"
          .Bookmarks.Add Name:="Address", Range:=rngBookmark
 
End If
Reply With Quote
  #2  
Old 07-09-2009, 04:39 PM
streng streng is offline Windows XP Office 2007 (Version 12.0)
Novice
 
Join Date: Sep 2008
Posts: 12
streng is on a distinguished road
Default

Is there a way to do this or am i needing six different bookmarks ?
Reply With Quote
  #3  
Old 07-13-2009, 11:35 AM
Bird_FAT's Avatar
Bird_FAT Bird_FAT is offline Windows 7 Office 2007 (Version 12.0)
Super Moderator
 
Join Date: Apr 2009
Location: South East
Posts: 281
Bird_FAT is on a distinguished road
Default

Can you tell me, what exactly is it you are trying to do?

What is being input? How? How do you get the address (typed in, or drop down box?)
What is the intended output? Format?

Can you also add a copy of the document with annotations, please.
__________________

Bird

If my post has helped, please add to my reputation in return - Thanks!

Windows XP > Office 2003
Windows 7 > Office 2007

MASTER+

Reply With Quote
  #4  
Old 07-13-2009, 11:54 AM
streng streng is offline Windows XP Office 2007 (Version 12.0)
Novice
 
Join Date: Sep 2008
Posts: 12
streng is on a distinguished road
Default

Have figured it out. All I needed was Chr(11) to tab to next line
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
Bookmark to another document spqr Word 3 06-26-2009 08:51 AM
changing first line indent hamster Word 6 04-07-2009 12:33 PM
How do I reference a merged cell in a multi column & row table in MS Word ('03')? jihanemo Word 0 03-18-2009 12:33 PM
TOC printing Error Bookmark not Defined techexpressinc Word 0 12-14-2008 08:24 PM
Cannot delete line adkr Office 0 04-03-2007 02:24 PM


All times are GMT -4. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.