+ Reply to Thread
Results 1 to 5 of 5

Double click code/from multiple sheets to one cell

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Ga,USA
    MS-Off Ver
    Excel 20037
    Posts
    4

    Double click code/from multiple sheets to one cell

    I am using the double code below to fill a specific cell in a worksheet with information. I am having trouble writing it to allow all worksheets to fill the same cell. Any help would be appreciated.



    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Cells(1, 1).Value = Target.Value

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Double click code/from multiple sheets to one cell

    try this

    Please Login or Register  to view this content.
    NOTE: TARGET IS IN THE SHEET IN WHICH THE EVENT CODE IS ASSOCIATED WITH
    SO WHEN YOU ENTER A VALUE IN A TARGET IT SHOULD BE IN THAT SHEET AND NOT IN AN;Y OTHER SHEET

    e.g. if this event code is associated with sheet 1 target is in sheet 1.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Double click code/from multiple sheets to one cell

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    12-02-2011
    Location
    Ga,USA
    MS-Off Ver
    Excel 20037
    Posts
    4

    Re: Double click code/from multiple sheets to one cell

    Thank you very much, I have been at this for hours. This is working perfectly.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Double click code/from multiple sheets to one cell

    What part of the Forum Rules are you struggling with, or is it all of them? Seems like you are hppy to receive the free help but not bothered about our rules. One more bad post & you will be banned.

+ 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