+ Reply to Thread
Results 1 to 4 of 4

Click on a Cell and Run Macro

  1. #1
    Registered User
    Join Date
    07-25-2005
    Posts
    27

    Question Click on a Cell and Run Macro

    Hello,

    I am reposting thread. Thank you BigBas. I'm posting the sample report. Basically user clicks on cell "C6", macro goes to Sheet1, types "Commercial" in B21 and "Collection" in B25 and clicks on ABC Print Area Button.

    I had to create macro for each value that I have in Sheet3 Column C. It worked for while but now I have more than 200 lines in Sheet3 Column C so I basically do not want to create 200 or so macros.

    I would like to create something where user clicks on Sheet3!C6 and macro automatically takes the value of Sheet3!C6 and puts in to Sheet1!B25.

    Any help would be greatly appreciated. Please help me guys. It is due tomorrow. My email address [email protected]. Below is my code for the worksheet.

    Please Login or Register  to view this content.
    Thank you so much.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this instead, change rang (v) to suit

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-25-2005
    Posts
    27

    Click on a Cell and Run Macro

    Thanks for reply. But for some reason its still does not work. It does something but it does not put the value in Sheet1:B21 and B25.

    Can you please help me? Thanks

  4. #4
    Registered User
    Join Date
    07-25-2005
    Posts
    27
    OMG.

    Its working. Thank you so much for your help. You're the best.

+ 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