Word 2013, RelativeHorizontalPosition does not work as it did in Word 2003

Hi all,
I am struggling with a small macro that is supposed to put a textbox in  the margin of a paragraph. This used to work just fine in Word97/2003 but somehow it does not in Word 2013. The text box ends up at the top left of the page. RelativeHorizontalPosition 
and RelativeVericallPosition have no influence on the placement. Can't understand why...
Sub TekstVakInvoegen()
Application.ScreenUpdating = False
Hoogte = CentimetersToPoints(1.27) ' Hoogte van Text Vak in points
Breedte = CentimetersToPoints(4.1) ' Breedte van Text Vak in points
PlaatsLeft = CentimetersToPoints(0) ' Plaats LEFT van Text Vak in points
PlaatsTop = CentimetersToPoints(0) ' Plaats TOP van Text Vak in points
Set myDoc = ActiveDocument
Set myTextVak = myDoc.Shapes.AddTextbox(msoTextOrientationHorizontal, _
PlaatsLeft, PlaatsTop, _
Breedte, Hoogte, Selection.Paragraphs(1).Range)
With myTextVak
.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionMargin
.RelativeVerticalPosition = _
wdRelativeVerticalPositionParagraph
.LockAnchor = True
.Fill.BackColor = 0
.Fill.Visible = msoFalse
.Fill.Transparency = 0#
.Line.BackColor = RGB(255, 255, 255)
.Line.Transparency = 0#
.Line.Visible = msoFalse
.LockAspectRatio = msoFalse
.TextFrame.MarginLeft = 0#
.TextFrame.MarginRight = 0#
.TextFrame.MarginTop = 0#
.TextFrame.MarginBottom = 0#
.WrapFormat.Type = wdWrapNone
.WrapFormat.Side = wdWrapBoth
.WrapFormat.DistanceTop = CentimetersToPoints(0)
.WrapFormat.DistanceBottom = CentimetersToPoints(0)
.WrapFormat.DistanceLeft = CentimetersToPoints(0.32)
.WrapFormat.DistanceRight = CentimetersToPoints(0.32)
End With
myTextVak.Select
Selection.WholeStory
Selection.Style = ActiveDocument.Styles("Tekst Vak Vet")
Application.ScreenUpdating = True
Application.ScreenRefresh
End Sub

Hi ddt333,
Base on my test again, I found that if the value of relative position is less than 1, it will uses the absolute position, you could change its position to relative position with the value less than 1 (e.g. 0), after save and re-check its position, you will
find that it still uses absolute position. By default it uses the absolute position, so when we add the new textbox to the document, its position is at left-top of document (left=0, top=0).
The RelativeHorizontalPostion property is used to specify its
relative to type (e.g. page, marging)
There are LeftRelative and TopRelative properties of shape, so please specify these properties’ value, then change
relative to type of shape.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Western iso 8859-1 character set is gone, "other (including Western" does not work. Why did you take it out?

    Some websites need Western ISO 8859-1 character set to run properly and you have taken it away in favour of "other(including Western)", now the site does not work properly. Why did you take it out and can you please put it back.

    ISO-8859-1 and Windows-1252 should be equivalent. Can you provide an example of a page that doesn't display properly?
    If you have to manually select a character encoding to view the page correctly, then the site is broken and you should notify its owner that it needs be fixed. Websites specify the character encoding in one of two ways:
    * [http://www.w3.org/International/tutorials/tutorial-char-enc/ Handling character encodings in HTML and CSS | W3C]
    # The ''Content-Type'' response header.
    # The ''meta'' tag in the page source.
    ''Henri Sivonen (:hsivonen) wrote:''
    <blockquote>We are in the process of implementing http://encoding.spec.whatwg.org/ . The process involves removing support for legacy character decoders that aren’t really necessary for supporting existing Web content.</blockquote>

  • My Password to enter my Hard Disk does not work. I did not loose it ! It is correct! What to do!

    My hard disk password for my Mac Pro laptop does not work. I am using the correct User Name and Password! I have not lost my password, it just stopped working and I get the "jumping window" effect and after clicking Continue a few times I get the "hint" for the Password I am using? What to do?

    First, make sure caps lock is not on.
    Another reason why your password might not be recognized is that the keyboard layout (input source) has been switched without your realizing it. At the login screen, you can cycle through the available layouts by pressing the key combination command-space or command-option-space. See this support article.
    You must back up all data before continuing, unless you've already done so. If you need to back up but can't log in, ask for instructions.
    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead these instructions.

  • How can I save a jpeg? Cntrl-click on does not work as it did in version 2

    In Firefox 2 I could hold down the Control key and click on an image to open a window with a "Save as" choice. Then I could name the image and chose a location to save it to. In Firefox 3, the window opens as before but the "Save as" choice does nothing. So how can I save website images as jpegs in a specified location such as a folder on my hard drive or on a memory stick?

    Hi ddt333,
    Base on my test again, I found that if the value of relative position is less than 1, it will uses the absolute position, you could change its position to relative position with the value less than 1 (e.g. 0), after save and re-check its position, you will
    find that it still uses absolute position. By default it uses the absolute position, so when we add the new textbox to the document, its position is at left-top of document (left=0, top=0).
    The RelativeHorizontalPostion property is used to specify its
    relative to type (e.g. page, marging)
    There are LeftRelative and TopRelative properties of shape, so please specify these properties’ value, then change
    relative to type of shape.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TS3276 My mail will not let me send mail and I seem to have lost my "Send" button  I have to look under messages to find Send. I spent two hours with my service provider last evening trying to fix this issue and now today it does not work again, what did

    I suddenly cannot send mail, I get the message I am not connected to my provider  I seem to remember I had a send button of a paper airplane on my mail page and now I have to look under messages to find the send

    Please describe in detail what happened when you took all the applicable steps in the support article that led you here. That's the starting point for any further efforts to solve the problem.

  • Command+S does not work

    When I am running any program in Snow Leopard (Word, Safari, Lightroom...etc) and I press command+S to Save it never works. Every other command works to Close, Quit or Save As but just Save does not work. It did not work also in Leopard before I upgraded to Snow Leopard.

    you probably have some keyboard shortcut set somewhere that takes over command+s.
    check your keyboard system preferences->keyboard shortcuts. if there is nothing there run the following terminal command and log out/in
    rm ~/library/preferences/.Global*

  • DNS does not work after Leopard utdate

    Hello!
    We are using an G5 XServe. Until recently we used 10.3.9.
    With this configuration everything worked, but when we updated from 10.3.9 to 10.5.1 the troubles began.
    All the DNS info from server admin is gone. And the network does not work as it did before.
    I can still see the info in the files via terminal, but it is not present in server admin.
    We cloned the server disk to an external drive before updating. When we start from this disk everything works great.
    I have been searching the net for a while and found this article:
    http://www.afp548.com/article.php?story=20071031195155456&query=Leopard%2BDNS
    It mentions a bug causing DNS to crash badly if service is updated and saved. I updated the service when I updated to 10.5, and I saved it afterwards...
    Does anyone have any tips? Im really need to get this up and running!
    I suppose I could clone the server back from the backup, update to 10.5 and NOT upgrade the DNS service. However I hope there is another solution..
    Any help would be greatly appreciated!
    Thanks
    Message was edited by: wiitho

    In a few hour its back to work..
    I have not found any absolute answer to my problem.
    I thing Ill try the "clone back and dont update DNS service" option. However, there is one concern:
    Will it help to not update the DNS service? Or will I be facing the same problem again after updating to 10.5? If anybody knows I would appreciate any answer
    Thanks!

  • Stylesheet does not work correctly

    I have web pages in the root and sub directories:
    /index.jsp [ <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>  ]
    /folder/list.jsp [ <link href="../resources/stylesheet.css" rel="stylesheet" type="text/css"/> ]
    /resources/stylesheet.css
    index.jsp has hyperlink to list.jsp and list.jsp has hyperlink to index.jsp.
    When app start, stylesheet is correctly applied to index.jsp. After I go to list.jsp and return back to index.jsp using hyperlink, stylesheet does not work anymore.
    Did anyone had similar problem? Do you have any workaround solution?
    Please help.

    I have not found anything in JSC that helps creating context url for stylesheet reference. Here is ugly hack I use for root page:
    /index.jsp [ <link href="/webapppath/resources/stylesheet.css" rel="stylesheet" type="text/css"/>  ]I will appretiate if anyone has more elegant solution or give more insight into JSC.
    Thanks!

  • Ctrl+Z does not work in Forms 11g on Windows (undo function)

    In Oracle Forms 11g on Windows, the undo function, ctrl+Z does not work as it did in Forms 6i.
    The ctrl+C and ctrl+V (copy/paste) work fine.
    I looked into the Forms key mapping resource file and no solution there.
    Thanks

    I'm not sure what functionality you believe you had previously, but UNDO does not have any automatic functionality built-in. This is clearly explained in the Builder Online Help. Here is some of that text. Notice carefully what it says about "Undo":
    <blockquote>Magic Item Property
    <blockquote>Description_
    Specifies one of the the following predefined menu items for custom menus: Cut, Copy, Paste, Clear, Undo, About, Help, Quit, or Window. Magic menu items are automatically displayed in the native style for the platform on which the form is being executed, with the appropriate accelerator key assigned. Cut, Copy, Paste, Clear, Window, and Quit have Built-in functionality supplied by Oracle Forms, while the other magic menu items can have commands associated with them.
    Usage Notes_
    The following settings are valid for this property:
    Cut, Copy, Paste, Clear
    These items perform the usual text-manipulation operations. Oracle Forms supplies their functionality, so the designer may not enter a command for these items.
    Undo, About
    These items have no native functionality_, so the designer must enter a command for these items. Any type of command can be used for these items, except Menu.
    ...</blockquote>
    </blockquote>

  • HELP CREATEBLOCKONEQ DOES NOT WORK!

    I have been pulling my hair out trying to get the SET CREATEBLOCKONEQ command to work in my calc scripts. I have been to the Essbase Calculate Databases training class and it does not work like it did in the class. I even sent a code snippet to my instructor and it worked for him but not for me. See my example below:
    Outline:
    611055 - Dense
    BegBal - Sparse
    61100011 - Sparse
    Q3Forecast - Sparse
    FY2010 - Sparse
    This should create a block without the SET CREATEBLOCKONEQ according to my class book and the tech reference guide but it does NOT!!!!
    FIX("61100011", "611055","Q3Forecast","FY2010")
         "BegBal" = 1;
    ENDFIX;
    This should create a block using the SET CREATEBLOCKONEQ according to my class book and the tech reference guide but it does NOT!!!!
    FIX("61100011", "611055","Q3Forecast","FY2010")
         SET CREATEBLOCKONEQ ON;
         "BegBal"="Actual"->"FY2009"->"Dec";
    ENDFIX;
    Is there a database setting that needs to set to a certain value for this stuff to work?! This is driving me crazy and is causing me to create extravegant work arounds just to do what should be simple calculations according the all the documentation I have seen.
    PLEASE HELP!!!

    Don't panic! Advice from Douglas Adams and me (I am somewhat less well known, but still good advice). :)
    Quick question, that will invalidate all of the below -- are you absolutely sure that BegBalance is in a sparse dimension? That's (generally) pretty unusual. If BegBalance is in a Time/Period dimension that is dense, it would explain why your code doesn't work. You could flip the code to say:
    FIX("61100011", "611055","BegBal","FY2010")
    SET CREATEBLOCKONEQ ON;
    "Q3Forecast" = "Actual"->"FY2009"->"Dec";
    SET CREATEBLOCKONEQ OFF ;
    ENDFIX
    Scenario is more likely (I don't know your db's layout, but this is common) to be sparse. If the above works, you can jump out of this post.
    Failing success, however, read on.
    More advice:
    1) Copy your database to something you know can't be in production -- I like Bozo.Bozo, but to each his own.
    2) Clear out the data from Bozo.Bozo.
    3) Go into EAS and edit the properties of the Bozo.Bozo database. It should say that it has zero blocks.
    4) Connect to Bozo (I am dropping the app name -- you get the idea) in Excel and navigate to your 61100011, 611055, Q3Forecast, Fy2010, and BegBalance intersection.
    5) Type in a 1, and lock and send. Delete the 1 from the spreadsheet, and retrieve again to prove that the number went in.
    6) Now go back into EAS and Bozo and Edit->Properties. You will see one block. There can only be one as you cleared out the db in step 2 and proved that there were zero blocks in step 3.
    Okay, having established that indeed, you can create a block by assigning a data value, I would now look go see if 61100011->61055->Actual->FY2009->Dec has data in your real database. Can you pull it into a separate sheet (obviously not the Bozo connected sheet)?
    If you can do that, connect your first sheet to your original db. Now lock and send the number 1 back to the db. Retrieve to make sure it works. If you were feeling feisty, you might do a before and after block count, but it may be difficult to tell what the real block count is as you may very well have been creating the block and didn't realize it.
    Ignoring SET CREATEBLOCKONEQ, try your second code block. You're just proving that you can assign data. Does that work?
    The only reason I can see CREATEBLOCKONEQ not working in your example is if in fact BegBalance is not sparse. It won't work on a dense dimension.
    Good luck and breath deeeeeeeply.
    Regards,
    Cameron Lackpour

  • AX green light, but airtune does not work

    I just bought an AX. The main purpose is to use airtune and to share printer at home, and to bring it to create wireless network when I am on business trip.
    When I first set up the AX, or later do a reset, the setup program can find AX. I use airport admin utility to set up the following:
    Airport tab:
    Wireless model: join an existing wireless network (wireless client)
    Wireless network: I choose the current wireless network I have at home.
    Internet tab:
    Configure: Using DHCP
    I clicked 'Update' button. The status light became green, but airtune does not work. I did not see the button show on iTune for me to choose the speaker. I went back to Airport Admin Utility, but could not find AX at all.
    I googled for possible solution, and saw concern regarding DHCP, so I tried:
    Internet tab:
    Configure: Manually
    IP address: 192.168.0.30. My wireless router assigns IP from 192.168.0.2 to 192.168.0.33
    Subnet mask: 255.255.255.0
    Router address: 192.168.0.1
    DNS server: 192.168.0.1
    After updating the information to AX, I have still the same issue: green light, but no airtune, Airport Admin Utility cannot find the AX.
    My wireless is a gigabyte. Please help. Thanks.
    Message was edited by: sfmech

    Sadly I can't help, but i can confirm: I am having the same problem. AirTunes was working fine, up until I went away for a month -- have just returned, and now am getting the same problem with TWO Airport Express units, which makes me think it is some kind of software update issue?
    Will keep looking into it, and will let you know if I find anything.

  • Caps Lock Does Not Work

    The caps lock key on my  4 yr old MacBook Pro (OS X 10.6.8) does not work. It did at one time. The Keyboard was replaced a long time ago but that did not solve it.
    If I log out and then back on as another user, it does work.
    Where do I start to look for the cause.
    Alexander

    Check in your keyboard settings on both accounts in System Preferences > Language and Text, and you may find a difference between the two regarding the behavior of the caps-lock key.
    Or your caps-lock may be a little capricious, too...

  • I downloaded today 09.19.2013 iOS 7 on my iphone 4 and iPad retina. Unfortunately on the camera app the switch from photo to video does not work neither on iphone nor on ipad. Is it a "youth" bug ?

    I downloaded ios 7 today 09.19.2013 on my iphone 4 and ipad retina 3hrd generation 64g . The switch from photo to video on the camera app does not work neither on iphone nor on ipad. Is it a "youth"bug ?

    Did you try swipe up and down to change?

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • Microsof VX 3000 or 6000 Webcam does not work with Lync 2013 under Windows 8.1

    Hi,
    The problem is that i cannot use the Microsoft VX-3000 or VX-6000 with Lync 2013 under Windows 8.1.
    If i go in settings under Video i can see the preview from the webcam just fine, so it works there no problem.
    Wenn i try to enable my camera in a conference it does not work, i get an error: Your video cannot be started.
    Now, there are no Windows 8.1 drivers for the Webcam so i installed the latest Windows 7 drivers. Because of that this webcam does not work with apps, that is fine i understand the driver problem and the way the new apps work.
    But this Webcam works with skype under Windows 8.1 and it works with Lync 2010 client.
    The same Webcam works just fine with Lync 2013 under Windows 7.
    Is there anything i could do so that i get this Webcam to work with Lync 2013 desktop client under Windows 8.1?
    Thanks

    Hi,
    According to your description, it may be caused by driver.
    You can try to install the latest version of Display Driver to fix the display issue.
    Since there is no driver for Windows 8.1, I suggest you wait for updating.
    You can also post a case on Windows 8 forum, thank you for your understanding:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=W8ITProPreRel%2Cw81previtpro&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for