+ Reply to Thread
Results 1 to 6 of 6

[VBA] Show chart on userform problem

  1. #1
    Registered User
    Join Date
    06-19-2021
    Location
    Canada
    MS-Off Ver
    Office365
    Posts
    3

    [VBA] Show chart on userform problem

    I tried to show chart in userform.
    But an error appears in Export Method.
    I haven't been able to solve it for a week, someone please help.
    Please see the attached excel file and fix it.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,885

    Re: [VBA] Show chart on userform problem

    The View Chart button works perfectly for me. The userform comes up showing the chart, and clicking the option buttons changes the chart.

    Please describe exactly what steps you take for the error to occur, and exactly what is the error number and error message.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-19-2021
    Location
    Canada
    MS-Off Ver
    Office365
    Posts
    3

    Re: [VBA] Show chart on userform problem

    Thank you for your replay.
    May I ask your Excel version?
    Mine is 'Office 365'.

    Error massage is
    Run time error / Method 'Export' of object '_Chart' field

    Thanks again.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,885

    Re: [VBA] Show chart on userform problem

    You did not describe the steps for the error to occur.

    My version is officially "Microsoft 365 Apps for Business". The version of Excels should match yours.

  5. #5
    Registered User
    Join Date
    06-19-2021
    Location
    Canada
    MS-Off Ver
    Office365
    Posts
    3

    Re: [VBA] Show chart on userform problem

    Thank you for your interest in my problem.
    The error occurred just userform.show
    I attached my screenshot.
    Thanks again.
    Attached Images Attached Images

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,885

    Re: [VBA] Show chart on userform problem

    I click the button and the userform comes up. The error is actually occurring on this line, but VBA is hightlighting the call to Show. This is a drawback of VBA debugging mode. Sometimes the error line is flagged when a Sub is called, but the actual error is inside the Sub.

    Please Login or Register  to view this content.
    Unfortunately I still can't tell what the problem is. I don't see anything in your code that could cause that.

    harrykim99.jpg

+ 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. Able to show chart but not autoshape on a userform with VBA
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2013, 04:56 AM
  2. How to show a chart with a shape on a userform using VBA
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2013, 01:12 PM
  3. problem with userform show data from a named range
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2009, 06:39 AM
  4. Modifying Chart Slide Show in a Userform
    By siamadu in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-20-2009, 05:36 AM
  5. Show a chart as an image on userform.
    By collegekid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2006, 06:10 PM
  6. Userform show / hide problem
    By brookly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2006, 05:50 PM
  7. UserForm Show problem
    By gabch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2006, 10:25 AM
  8. Replies: 1
    Last Post: 01-09-2006, 03:15 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