+ Reply to Thread
Results 1 to 5 of 5

need help with copy past vba

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    39

    need help with copy past vba

    here is my problem while the command is executing "copy paste" it flashes the square a few times and then it stops. and after all the values blink and don't stop blinking in the edit field next to the function icon.
    here is the command.

    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

    Select Case Range("J11")

    Case "duo1"



    Range("Q11:Q15").Select
    Selection.Copy
    Range("K11").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False


    End Select


    End Sub
    Attached Files Attached Files

  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: need help with copy past vba

    Hi, K-Ching,

    please be informed to use code-tags when presenting procedures here on ExcelForum. Please add them according to Forum Rule #3. TIA.

    Deactivate the procedure in ThisWorkbook and add the following procedure behind Sheet1:
    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
    Registered User
    Join Date
    01-18-2014
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: need help with copy past vba

    thank you works fine and now i wold like to know how to get the range from another sheet

  4. #4
    Registered User
    Join Date
    01-18-2014
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: need help with copy past vba

    thank you i figured it out

    Select Case Target
    Case "duo1"
    Application.EnableEvents = False
    Range("K11:K15").Value = Sheets("1").Range("A2:A6").Value


    Application.EnableEvents = True

  5. #5
    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: need help with copy past vba

    Hi, K-Ching,

    glad you could figure it out by yourself. But I would like to remember you to take some time to read the Forum rules and apply code-tags whereever you have posted a procedure. Code-tags make code easier to read and copy.

    Ciao,
    Holger

+ 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. Need a way to copy and past information
    By CRS- in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2013, 02:44 PM
  2. Copy & Past to the last row of a certain column
    By IKZOUHETNIETWETEN in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2013, 10:44 PM
  3. Copy and Past
    By skate1991 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 09:56 AM
  4. Copy and Past from PDF formating
    By Scotty476 in forum Excel General
    Replies: 3
    Last Post: 12-04-2006, 10:02 AM
  5. [SOLVED] Copy and Past
    By Joe in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 09:10 PM

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