+ Reply to Thread
Results 1 to 16 of 16

format a picture with a macro?

Hybrid View

  1. #1
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    re: format a picture with a macro?

    Check out this post by Leith Ross.

    http://www.excelforum.com/947504-post2.html

    Let me know if it needs some more explenation and I'll try and help.

    Since you are using "Print Screen" we can probably just use a value to resize it to instead of 50%
    Last edited by vamosj; 10-11-2009 at 02:30 PM.
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  2. #2
    Registered User
    Join Date
    12-01-2008
    Location
    Orlando, FL
    Posts
    8

    re: format a picture with a macro?

    I'm attempting to make the code work... Though how do I attach a shortcut key command to it?

    Thanks

  3. #3
    Registered User
    Join Date
    12-01-2008
    Location
    Orlando, FL
    Posts
    8

    re: format a picture with a macro?

    I'm afraid I'm not as skilled enought with VB to make that code work. I just know the very basics....... How do I select the picture to resize? Not sure what to put in place of "expression"

  4. #4
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    re: format a picture with a macro?

    Considering that you are using "Print Screen" to capture parts of your video let's go ahead and introduce you to the Macro Recorder. This little baby helped me to get where I am today in using VBA (as rough as I still am).

    Since each image is going to be coming in the same size (resolution) we can use the macro recorder to record your first resizing operation then we can assign a shortcut key to do the operation for you.

    Follow these instructions and you should be good to go.
    1. Hit Print Screen for any part of your video to capture your first image to work with.
    2. open up your excel document used for your notes.
    3. click where you are going to put this image.
    4. Now on the toolbar where you have file, edit, view, etc..... select Tools - Macro - Record New Macro
    5. Name your macro whatever you want.
    6. Under where you name the macro you should a place you can assign a shortcut key. it'll have ctrl + ___ Just assign a letter, like the letter m you wanted to use.
    7. Hit okay
    8. Now go ahead and paste the picture and resize it to the size you want. (Right click on the picture, select format picture, size).
    9. Once you hit okay to resize it you can now stop your macro recording. Don't select any cell's until after you stop. You can do this by hitting the stop on the floating button that should be hanging around or once again selecting tools, macro, stop recording.
    10. From here you all you'll have to do is hit your print screen, hit the cell you want to paste the image into, then hit ctrl + whatever letter you chose.



    Hopefully this helps you out. Just remember, Macro Recorder can be a great friend to you, but once you start recording it will pretty much capture anything you do, so if you select the cell you are going to paste into after you start the macro recorder, then if you do the macro, it's going to select that cell again.

  5. #5
    Registered User
    Join Date
    12-01-2008
    Location
    Orlando, FL
    Posts
    8

    re: format a picture with a macro?

    Thank you for the detailed explanation, though I tried it and it does not work. Excel is not able to record formatting/resizing a picture via a macro recording, unfortunately......

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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