+ Reply to Thread
Results 1 to 4 of 4

"Text string you entered is too long" error when plot point clicked

  1. #1
    Registered User
    Join Date
    11-13-2009
    Location
    Cumbria
    MS-Off Ver
    Excel 2016
    Posts
    87

    "Text string you entered is too long" error when plot point clicked

    Hi Everyone,

    I have written a routine that responds to scatter plot points being clicked using VBA.

    The problem is that when I click a plot point, I get a "Text string you entered is too long" error message because the series collection is so big that it doesn't fit into the formula bar. I don't need it to appear in the formula bar. Is there anything I can do about this please? I'd be happy if it just didn't appear in the formula bar.

    Many thanks in advance,

    Rowan

  2. #2
    Registered User
    Join Date
    11-13-2009
    Location
    Cumbria
    MS-Off Ver
    Excel 2016
    Posts
    87

    Re: "Text string you entered is too long" error when plot point clicked

    Does anyone have any ideas for this?
    Last edited by RowanB; 02-13-2014 at 07:40 PM.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: "Text string you entered is too long" error when plot point clicked

    without seeing any code or example it's hard to say, other than make the string shorter :p
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    11-13-2009
    Location
    Cumbria
    MS-Off Ver
    Excel 2016
    Posts
    87

    Re: "Text string you entered is too long" error when plot point clicked

    The code below is what I entered into a class module so that when a plot point on the chart is clicked, a user form opens. The problem is that the series string is too big for the formula bar. Is there a way I can just stop the series appearing in the formula bar?

    Public WithEvents myChartClass As Chart

    End SubPublic WithEvents myChartClass As Chart
    Public WithEvents myChartClass2 As Chart



    Private Sub myChartClass_Select(ByVal ElementID As Long, ByVal Arg1 As Long, ByVal Arg2 As Long)

    Dim PS2 As Worksheet
    Dim ColCount As Long

    Chart2 = True
    Chart1 = False

    Set PS2 = Worksheets("Product Search 2")

    If ElementID = xlSeries Then

    If Arg2 > 0 Then

    GlobalArg1 = Arg1
    GlobalArg2 = Arg2
    ColCount = 0

    UserForm9.Show vbModless


    End If

    End If

    End Sub

+ 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. Error: The text string you entered is too long.
    By GTVT06 in forum Excel General
    Replies: 2
    Last Post: 06-15-2006, 03:10 PM
  2. "string too long" error message
    By dick in forum Excel General
    Replies: 0
    Last Post: 01-04-2006, 07:10 AM

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