Results 1 to 6 of 6

Thread: Solved: VBA to find a value and copy values from sheet2

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Solved: VBA to find a value and copy values from sheet2

    I have worksheet1 which contains the ComputerNameListed and worksheet2 which contains the user information. What I want to do is search worksheet1 for each instance of ComputerNameListed (it always starts with ComputerNameListed - (Actual name here) and when ComputerNameListed is found go to worksheet2 and find in column A the matching PC Name.

    Part 2, I then need to copy the ROW from worksheet2 with the matching ComputerNameListed over to worksheet1, but past all the values from the ROW into one cell.

    I was putting together some VBA to perform this, but realize I am out of my league! I was working on the find function which I have something like this:
    [vba]
    Set c = .Find("ComputerNameListed*", lookin:=XlValues)
    [/vba]

    How would one perform these tasks in vba?
    Last edited by richardSmith; 03-25-2013 at 07:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •