Consulting

Results 1 to 3 of 3

Thread: return specific values

  1. #1
    VBAX Newbie
    Joined
    Aug 2010
    Posts
    1
    Location

    return specific values

    Hii every one .

    I have a problem in creating a macro for return specific values
    I have 2 sheets, the first one contains all the informatoin of 1000 servers, eg: server name, ip address, port# and so on. all of these information fall in one coulmn for all of the 1000 servers. " each server information begin with wideip {, and end with }}. the IP address begin with address word ".

    In the second sheet I have around 500 server name, and I need to get the IP address for these servers from the first sheet.

    This is the macro for the first entry only, bit i dont know how to make the loop and search for the ip address for those 500 server!!

    [VBA]Sub Macro1()
    Range("A2").Select
    Selection.Copy
    Sheets("3dns config").Select
    Cells.Select
    ActiveWindow.SmallScroll Down:=20
    Range("A17088:A17112").Select
    ActiveWindow.SmallScroll Down:=3
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Load Balanced Names").Select
    Range("E2").Select
    ActiveSheet.Paste
    ActiveSheet.Paste
    Application.CutCopyMode = False
    End Sub[/VBA]



    HELP ME PLEASE

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Post your workbook.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor mohanvijay's Avatar
    Joined
    Aug 2010
    Location
    MADURAI
    Posts
    268
    Location
    try vlookup function

Posting Permissions

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