Results 1 to 10 of 24

Thread: Get Pictures from Word Documents in All Sub Folders

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Hi
    Quote Originally Posted by prkhan56 View Post
    .....
    The macro comes out at the breakpoint and does not create any folder "MovedToHere"..
    I don't quite understand what you mean by this.

    Do you mean that the macro errors at this line?
    Code:
    Documents(strDocumentName & ".htm").Close



    Where do you have the macro? In which document do you have the macro?
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

  2. #2
    Junior Member
    Join Date
    Aug 2021
    Posts
    13
    Rep Power
    0
    Hi Alan,
    Yes as per the screen shot I sent to you, the macro comes out on the Breakpoint image.
    It does not create any folder "MovedToHere" and move the images in this folder.
    Hope it is clear now.

    The macro is in the Word File inserted as a Module which is open at the time of running the macro
    Last edited by prkhan56; 09-23-2021 at 12:06 AM. Reason: missed a point

  3. #3
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Hi
    Quote Originally Posted by prkhan56 View Post
    .., the macro comes out ...
    I am still not sure what you meant? What does ..." the macro comes out..." mean? Does the macro stop with an error message. If so , what error message is given?
    _.__________________________

    Quote Originally Posted by prkhan56 View Post
    The macro is in the Word File inserted as a Module which is open at the time of running the macro
    Which Word file? - If it is in the file which is saved as .htm , then when the file is closed, the macro is gone so nothing further will happen.
    _.______________________


    You could try to remove the close and kill lines , ( ' comment them out ), and then see what happens.
    Like this:
    Code:
       '  Documents(strDocumentName & ".htm").Close   ' The purpose of the  Save As    .htm  was to get thee new folder made, that's all, so we can close that file now, and then kill (delete) it
      '  Kill strPath & "\" & strDocumentName & ".htm"    
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Replies: 1
    Last Post: 08-26-2021, 11:42 AM
  2. Replies: 3
    Last Post: 07-09-2020, 02:17 AM
  3. Replies: 7
    Last Post: 08-24-2015, 10:58 PM
  4. Replies: 9
    Last Post: 07-26-2013, 02:34 PM
  5. Replies: 1
    Last Post: 10-16-2012, 01:53 PM

Posting Permissions

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