+ Reply to Thread
Results 1 to 3 of 3

adding in a variable on a user clic

  1. #1
    Registered User
    Join Date
    03-28-2015
    Location
    paris
    MS-Off Ver
    Excel 2007
    Posts
    1

    adding in a variable on a user clic

    Hello,
    Hello everybody

    I want to add 1 in a counter each time a user clics on a picture which is in a sheet.

    As it is, the counter stays to value 1 whenever the user clicks on the picture or not.

    can someone give me some advice please ?

    ===========================

    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 03-28-2015 at 07:02 AM. Reason: missing code tags

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: adding in a variable on a user clic

    Hi and welcome to the forum. Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (Since you're new here I'll change it on this occasion but please note for the future and read ALL our rules.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: adding in a variable on a user clic

    Hi,

    Change the Dim statement.

    Make it a Public Variable above the Quiz_Clic procedure.

+ 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] Print multiple documents by one button clic
    By polooop in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2014, 10:32 AM
  2. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  3. VBA: Create User Form That Takes Variable User Inputs
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 06:14 PM
  4. Object Variable or With Block Variable Not Set- Error on Another User Machine
    By dailem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 09:28 AM
  5. Replies: 0
    Last Post: 04-13-2005, 03:06 PM

Tags for this Thread

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