+ Reply to Thread
Results 1 to 6 of 6

Inserting a picture into a protected worksheet into Excel using Macros

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Inserting a picture into a protected worksheet into Excel using Macros

    OK bear with me I am literally brand new today to this stuff.

    I've designed a worksheet (for work) in which the user needs to be able to insert a picture of their choice in a specified place.

    I need this to be able to be done in 4 places on the sheet.

    I've been googling and found the below script which works when you play it but wont work on the Ctrl +1 command.

    Can any one tell me what i'm doing wrong?

    Each Macro is the same but for a different place

    Please Login or Register  to view this content.
    Last edited by Cutter; 07-19-2012 at 09:42 AM. Reason: Added code tags

  2. #2
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Inserting a picture into a protected worksheet into Excel using Macros

    Comparing the different "Keyboard Shortcuts",

    Macro1 -> ' Keyboard Shortcut: Ctrl1 - does not have the '+' sign
    Macro2-> ' Keyboard Shortcut: Ctrl+2
    Macro3-> ' Keyboard Shortcut: Ctrl+3
    Macro4-> ' Keyboard Shortcut: Ctrl+4

    Maybe you need to redefine the keyboard shortcut for macro1.

    Elio Fernandes
    Last edited by efernandes67; 07-19-2012 at 09:46 AM.

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting a picture into a protected worksheet into Excel using Macros

    Sorry that was my mistake, it didn't work with the "+" sign so I removed it to see if it worked without it but it didn't.

    I know the script is correct as it runs, is there anything I need to do like press some button to apply it to the excel sheet?

  4. #4
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Inserting a picture into a protected worksheet into Excel using Macros

    Can you post your file?

  5. #5
    Registered User
    Join Date
    07-19-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting a picture into a protected worksheet into Excel using Macros

    Attached is my worksheet
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-19-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting a picture into a protected worksheet into Excel using Macros

    Done it - had to assign the macro to an object. It works now,

    Thanks any way

+ 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