+ Reply to Thread
Results 1 to 6 of 6

Marco to get data and also to update table with amendments?

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Hampshire, England
    MS-Off Ver
    Office 2007 and Office MAC 2011
    Posts
    27

    Question Marco to get data and also to update table with amendments?

    Hello all,

    Can anyone help me by starting me off in the right direction please and I will learn from it and finish it off what I am doing is setting up a forum and I have a Macro that takes the data and puts it in to a table.

    Now what I need to do is have a Macro that looks at what has been selected in a dropdown list and automaticly enters it back into the forum for example

    Dropdown list (sheet New) = Column C (sheet Current)

    Find Column C data on currnet (1234 = Row 9)

    A9 into E7
    B9 into E15
    C9 into E13
    D9 into E9

    Ect. ect.

    The thing Id like it to do is automaticly change depending on the entery selected.

    Can anyone help me start this on off with the basic functions and I will expand

    Thank Rich
    Last edited by rmharrison; 12-04-2012 at 01:47 AM. Reason: update Title

  2. #2
    Registered User
    Join Date
    11-15-2012
    Location
    Hampshire, England
    MS-Off Ver
    Office 2007 and Office MAC 2011
    Posts
    27

    Re: Marco to get data

    After re thinking about it I think it best if the user press a Recall Botton, this way it saves on errors caused by human error.

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    Hampshire, England
    MS-Off Ver
    Office 2007 and Office MAC 2011
    Posts
    27

    Re: Marco to get data

    Can anyone help with this?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Marco to get data

    Do you have a sample file (with your form) that you can upload?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    Hampshire, England
    MS-Off Ver
    Office 2007 and Office MAC 2011
    Posts
    27

    Re: Marco to get data

    Sadly I can't upload it as it contains confidential information.

    So I will upload an example sheet which is very crude.

    I have had a rethink of what I need. Please see Attachment for following to make sence.

    User enters details into Boxes A, B, C & D on sheet 1 and press Submit Marco Puts info into a table on sheet 2.

    User then enters details from box C into Box X and presses Retrieve, Marco then finds details in the Table from sheet 2 and then puts it back into boxes A, B, C & D

    What I’m after is 2 things the 2nd I have only realised since righting this post.

    1st a Macro that searches the table for that number, Then enters the info into the correct boxes.

    2nd if someone could correct the bellow Macro so that it looks for the number first and updates old entries before creating a new line.

    I know this seems like I’m just getting everyone here to do my work for me well that’s how it feels to me, but when I first learnt this sort of stuff I was recording macros. I am really grateful for everyone’s help. All I need is the basics and I try to learn from there.



    Please Login or Register  to view this content.
    Regards Rich
    Attached Files Attached Files
    Last edited by rmharrison; 12-03-2012 at 10:23 PM.

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Hampshire, England
    MS-Off Ver
    Office 2007 and Office MAC 2011
    Posts
    27

    Re: Marco to get data and also to update table with amendments?

    is there anyone that can help with this?

+ 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