+ Reply to Thread
Results 1 to 2 of 2

'Invalid image error :481' when displaying 7 charts or more as image

Hybrid View

djemy1975* 'Invalid image error :481'... 10-25-2018, 03:59 AM
controlz Re: 'Invalid image error... 11-02-2018, 02:26 AM
  1. #1
    Registered User
    Join Date
    02-03-2016
    Location
    Algeria
    MS-Off Ver
    2016
    Posts
    20

    'Invalid image error :481' when displaying 7 charts or more as image

    Dear friends,
    Please be kindly requested to help me get over a problem in displaying charts (7 charts)as images in my userform .The problem is when navigating from image to image by using next and previous buttons I get this error "Invalid image 481" error and when debugging the cursor comes over this line which is highlited with yellow colour:

    Image1.Picture = LoadPicture(Fname)

    My function is as follows:

    Private Sub SaveChart() Dim MyChart As Chart
    Dim Fname As String
    
    
    Set MyChart = Sheets("Charts").ChartObjects(ChartNum).Chart
    'MyChart.Parent.Width = 400
    'MyChart.Parent.Height = 350
    
    Fname = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
    MyChart.Export Filename:=Fname, FilterName:="GIF"
    
    
    
    ' Show the chart
    Image1.Picture = LoadPicture(Fname)
    
    
    End Sub

    Could someone tell me where is the error ?

  2. #2
    Registered User
    Join Date
    10-30-2018
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    3

    Re: 'Invalid image error :481' when displaying 7 charts or more as image

    Following.........

+ 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. Replies: 32
    Last Post: 07-17-2018, 03:08 AM
  2. [SOLVED] Using a Userform to Browse image file then paste selected image to sheet?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2015, 05:42 PM
  3. [SOLVED] VBA to send embedded image in email body- NOT USING THE ORGINAL IMAGE SOURCE
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-27-2013, 06:48 PM
  4. Macro inc. on error go to start, import image, crop image
    By DWatPerry in forum Tips and Tutorials
    Replies: 1
    Last Post: 02-29-2012, 02:38 PM
  5. Displaying and Updating Image Dynamically (ActiveX Image Control?)
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 10:57 AM
  6. displaying image from a URL
    By rshah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-16-2010, 05:07 PM
  7. [SOLVED] Hyperlink to an image in other worksheet, displaying entire image.
    By twilliams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2006, 06:10 PM

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