+ Reply to Thread
Results 1 to 7 of 7

How to copy fr AU:AY & paste to O:S after double click at B in same row

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    How to copy fr AU:AY & paste to O:S after double click at B in same row

    hello all,
    I have a double click target at column B (can i have a limit for B20:B100 in stead of entire column B?)

    DoubleClick @ B20 then copy from Range("AU20:AY20") paste into Range("O20:S20")

    DoubleClick @ B25 then copy from Range("AU25:AY25") paste into Range("O25:S25")

    Please help me with this if it's possible.

    Regards,
    tt3
    Last edited by tuongtu3; 12-14-2012 at 03:34 PM. Reason: Solved

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi, tt3,

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi Holger,
    The code works but I want to change to:
    Double click at column B (You just gave me a code)
    UserForm.Show (I have this)
    CommandButton3 (I need code in this button to copy and paste from AU to O in same row)

    Thank you very much for your time and help.
    Regards,
    tt3

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi, tuongtu3,

    The code works but I want to change to
    Fine that the code works, but why donīt you ask what you are really for? What you want may bring you in trouble. If you use BeforeDoubeClick you have a Target in the worksheet, if you want to apply an UserForm you need to take care to get the proper row instead on relying on a target. And thatīs exactly the point: you need either to find the proper row or rely on information that I donīt have to determine the row. Least of all you could rely on ActiveCell instead of Target but that may lead to unwanted results.

    Ciao,
    Hoger

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi Holger,
    I’m so sorry because I’m too slow and don’t know ahead of exactly what I want. Until I see your code then I think of something else that I can do on my workbook. You can take a look at my sample in the attached and I need a commandButton3 code to copy and paste at my first post. Or you may assist me a code on commandButton3.
    Thank you very much for your time and help.

    Regards,
    tt3
    Attached Files Attached Files

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi, tt3,

    behind Sheet1:
    Please Login or Register  to view this content.
    Code for CommandButtomn3:
    Please Login or Register  to view this content.
    HTH
    Holger

  7. #7
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to copy fr AU:AY & paste to O:S after double click at B in same row

    Hi Holger,
    Yes, that works. Thank you very much for your time and help.

    Regards,
    tt3

+ 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