+ Reply to Thread
Results 1 to 6 of 6

Resize & Placing Image Error 400

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Resize & Placing Image Error 400

    hi all...

    why this code below showing error 400, i just modify the range but still error
    this code :

    Please Login or Register  to view this content.
    here the new file :

    how to fixed it?

    a cross post from :
    https://www.excelforum.com/excel-pro...-in-excel.html

    any one would help me , much appreciated...

    john m
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,301

    Re: Resize & Placing Image Error 400

    1. maybe it explain something, maybe not
    https://www.add-ins.com/support/micr...-error-400.htm

    2. You should not use word 'index' because 'Index' is a reserved word (vba property, number for an object in the collection, e.g. for Window, Worksheet, ListColumn, ListRow, PivotFormula, etc.)

    3. Try alternative constructions:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    You may have other objects from the same collection of 'Shapes' in your worksheet - pictures belong to this collection, so you should check their type:
    Please Login or Register  to view this content.
    4. Use 'Set Pic = Nothing' at the end of assigning object variables

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Resize & Placing Image Error 400

    Quote Originally Posted by porucha vevrku View Post
    1. maybe it explain something, maybe not
    https://www.add-ins.com/support/micr...-error-400.htm

    2. You should not use word 'index' because 'Index' is a reserved word (vba property, number for an object in the collection, e.g. for Window, Worksheet, ListColumn, ListRow, PivotFormula, etc.)

    3. Try alternative constructions:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    You may have other objects from the same collection of 'Shapes' in your worksheet - pictures belong to this collection, so you should check their type:
    Please Login or Register  to view this content.
    4. Use 'Set Pic = Nothing' at the end of assigning object variables
    Thank porucha..after tested your code not fully work..
    i mean only 2 pictures can move and placing in the right place (in frame/box available) and 2 picture the other not move...
    i want all picture can move, resize, and "in" that frame/box...
    please, would you help me...

    here my sample that my expected...
    Attached Files Attached Files
    Last edited by Jhon Mustofa; 10-22-2017 at 06:47 PM.

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,301

    Re: Resize & Placing Image Error 400

    at my place it's working - see attachments (it's mp4 files, working with e.g. mpc-hc)
    it may be something with a pictures format at you ... maybe ...
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Resize & Placing Image Error 400

    Quote Originally Posted by porucha vevrku View Post
    at my place it's working - see attachments (it's mp4 files, working with e.g. mpc-hc)
    it may be something with a pictures format at you ... maybe ...
    hi porucha..i was trying again but still error "the parameter syntax is incorrect
    my picture is good nothing problem...
    please, check in my new file...
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,301

    Re: Resize & Placing Image Error 400

    Attach a screenshot from manually (F8 key in vba editor) testing of macro code with error message, I will see in which line it occured.

+ 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. [SOLVED] Placing & Resize Multiple Image in Excel
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-01-2017, 06:52 AM
  2. Replies: 1
    Last Post: 07-14-2016, 04:59 AM
  3. [SOLVED] Image Resize
    By Imrank in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2015, 12:38 PM
  4. Placing image in the same cell in all the sheets
    By S@2014 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2014, 08:23 AM
  5. Placing image in cell, but selecting cell (not image) when clicked
    By rollingdice17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2013, 11:15 PM
  6. Placing and resizing an image + delete existing image
    By dsheets05 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2011, 09:05 PM
  7. Placing an image behind text/numbers
    By -Doubleoseven- in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-01-2011, 08:25 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