+ Reply to Thread
Results 1 to 7 of 7

Macro VBA to Copy & Paste Cell Item to another Cell Item

Hybrid View

  1. #1
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Macro VBA to Copy & Paste Cell Item to another Cell Item

    Hiii..

    code is modified to Select both cell i.e. cell to be copy from Col. G with and destination cell to paste special with input box

    Sub Cpypst()
        Dim rng As Range
        Dim dest As Range
        Set rng = Application.InputBox("Select Cell in Col G", Type:=8)
        Set dest = Application.InputBox("Destination Cell to Paste", Type:=8)
        rng.Copy        ' Copy range cell in Col G
        dest.Select      ' required destination cell to paste
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False         ' Paste special coding
        Application.CutCopyMode = False
    End Sub
    Is this okay...
    Don`t care, take care...

    Regards,
    Mangesh

  2. #2
    Registered User
    Join Date
    06-09-2015
    Location
    Perth, Australia
    MS-Off Ver
    2013
    Posts
    52

    Re: Macro VBA to Copy & Paste Cell Item to another Cell Item

    Quote Originally Posted by mangesh.mehendale View Post
    Hiii..

    code is modified to Select both cell i.e. cell to be copy from Col. G with and destination cell to paste special with input box

    Sub Cpypst()
        Dim rng As Range
        Dim dest As Range
        Set rng = Application.InputBox("Select Cell in Col G", Type:=8)
        Set dest = Application.InputBox("Destination Cell to Paste", Type:=8)
        rng.Copy        ' Copy range cell in Col G
        dest.Select      ' required destination cell to paste
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False         ' Paste special coding
        Application.CutCopyMode = False
    End Sub
    Is this okay...
    Yep - Thanks !! Working Fine.

+ 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] Macro VBA to Copy & Paste Cell Item to another Cell Item
    By mave27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2015, 05:10 AM
  2. [SOLVED] Macro in excel for converting forecast Child Item (BoM) to Parent Item (SKU)
    By dev.jajati in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 06:09 AM
  3. [SOLVED] How to copy/autofill to last item if below cell is blank
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2013, 01:19 PM
  4. vba Copy Filter item and paste at other worksheet
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2012, 06:21 AM
  5. Replies: 5
    Last Post: 05-17-2012, 10:51 PM
  6. macro coding to show item from specified cell.
    By Saky in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-29-2011, 03:05 AM
  7. Need help with a copy paste item
    By jdwilliams1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2007, 12:54 AM

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