+ Reply to Thread
Results 1 to 7 of 7

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

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

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

    I have a Index/Search Function placed on Col G which returns closest fit data (can be single or many). The Index/Search Function reads item on Cell E2.

    1. Using human judgement, i will select the appropriate cell which is best fit (G6)
    2. Copy it
    3.Position cursor on the Col cell adjacent to one shown in Formula Bar (B46)
    4.Paste Special Text

    Anyone care to share Macro VBA codeto automate Steps 2 to 4 ?

    copy_paste.png

  2. #2
    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

    50 visitors to this thread..

    not able to understand what you want to say...
    Please let us know that where you want to paste cell G6...

    Here is code to copy cell G6 and paste special

    Please Login or Register  to view this content.
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    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

    Also let us know whether copying G6 is fix or do you required input box to select cell to copy
    Last edited by mangesh.mehendale; 07-24-2015 at 08:17 AM.

  4. #4
    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

    1. G6 is NOT fixed !! The cell that needs to be copied will be identified by the position of the cursor on Col G. In this case it is G6 for illustration purposes.

    2. I want to "Copy/Paste Special Text" TO Cell B46.

    B46 = value of E2 (ie /Formula Bar/ =A46) + Next Adjacent ie Col (B)

    Hope you understand.
    Last edited by mave27; 07-24-2015 at 08:54 AM.

  5. #5
    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

    @Mangesh

    You have just given me an idea.

    1. Can you modify the code below since you have hard coded G6 into it.

    Please Login or Register  to view this content.
    Cell to be copied is derived from the position of the cursor on Col. G - modify the above code to do this.

    2. Modify the code to show Input Dialog box, where I will specify which Cell i want to Paste Special/Text

    In short: the code will do 2 things:

    1. Copy the cell identified by cursor position on Col G
    2. Show Input Dialog Box where user will manually input value, to Paste Special: Text

  6. #6
    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

    Please Login or Register  to view this content.
    Is this okay...

  7. #7
    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

    Please Login or Register  to view this content.
    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