+ Reply to Thread
Results 1 to 2 of 2

Using VBA to copy, and paste in another dynamic cell

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    25

    Using VBA to copy, and paste in another dynamic cell

    Hi!

    Hoping someone can help me!

    I am trying to write a code for a button. Please see the attached example excel sheet.

    I have two sheets; Table1, and Report. Table1 display raw data whilst Report displays a report.

    The Table contains a list of training sessions (their code name), their average scores and a recommendation column.

    The Report sheet displays individual report for each session. The idea is that the user will be able to type a session code (in cell F1), and the session information will be displayed in this sheet. Now there is also recommendation section in the Report sheet. I would like the user to be able to type in a recommendation in that cell and click on a button, which would then copy that recommendation, into the recommendation column in the Table1 sheet, in the appropriate row for the same session code as referenced in Report sheet's cell F1.

    I hope I have explained it alright. I have already some code in the button. But I have a feeling I am approaching this the wrong way and my code really doesn't work.

    My VBA knowledge is very basic.

    Thank you in advance for everyones help!

    S
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Using VBA to copy, and paste in another dynamic cell

    Instead of VBA, why not just add a formula, ie. =INDEX(Table1!A:C, (MATCH(Report!F1, Table1!A:A, 0)), 3)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Copy and Paste Dynamic Range
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2013, 11:14 AM
  2. Dynamic Copy & Paste
    By Murrayk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 01:57 AM
  3. Dynamic Copy & Paste
    By Murrayk in forum Excel General
    Replies: 0
    Last Post: 01-30-2013, 01:57 AM
  4. paste RNG numbers
    By kaohik78 in forum Excel General
    Replies: 0
    Last Post: 09-26-2012, 10:30 PM
  5. Dynamic copy and paste
    By htrboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2009, 06:42 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