+ Reply to Thread
Results 1 to 2 of 2

msoTextOrientationVertical gives Runtime error 2147024809 80070057

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    midlands, england
    MS-Off Ver
    2010
    Posts
    1

    msoTextOrientationVertical gives Runtime error 2147024809 80070057

    Hi All,

    Apologies if this has been covered already, but I have tried a number of different things in order to get a piece of code working- it works well in my colleague's Excel (Excel 2013), but whenever I run the code (a code that generates pdfs from input data and exports said pdfs) in Excel 2010 then the code freezes at this line:

    Selection.Format.TextFrame2.Orientation = msoTextOrientationVertical

    and the follwoing runtime error is given:

    'runtime error 2147024809 80070057 the specified value is out of range'

    I have commented out the line- the pdfs generate, but the graphs do not display fully. The section of code of which the 'Selection.Format.TextFrame2.Orientation = msoTextOrientationVertical' is part is:

    ' apply labels
    '
    ActiveChart.SeriesCollection(1).Select
    ActiveChart.SeriesCollection(1).ApplyDataLabels
    ActiveChart.SeriesCollection(1).DataLabels.Select
    Selection.ShowSeriesName = True
    Selection.ShowValue = False
    ActiveChart.SeriesCollection(1).HasLeaderLines = False
    Selection.Orientation = xlUpward
    Selection.Format.TextFrame2.Orientation = msoTextOrientationVertical
    With Selection.Format.TextFrame2.TextRange.Font
    .BaselineOffset = 0
    .Size = 2
    End With
    Selection.Position = xlLabelPositionCenter
    End With



    Could anyone please help? I have tried changing the baseline offset and size, but it doesn't help.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: msoTextOrientationVertical gives Runtime error 2147024809 80070057

    Try:

    Please Login or Register  to view this content.
    And welcome to the Forum!

    (We put tags around our code - just highlight your code and click on the #)
    Last edited by xladept; 02-11-2015 at 08:58 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run-time error '-2147024809 (80070057)' Item with specified name wasn't found
    By tom_6030 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-08-2014, 10:24 PM
  2. [SOLVED] Run Time Error -2147024809 (80070057)
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2014, 11:51 AM
  3. Run-time error '2147024809' while running
    By abraham30 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2013, 05:40 PM
  4. [SOLVED] Run-Time Error '-2147024809 (80070057)': Could not find the specified object
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2013, 12:44 PM
  5. [SOLVED] Sub halts with Run-time error '-2147024809 (80070057) specified value is out of range
    By Max in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-08-2006, 07:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1