+ Reply to Thread
Results 1 to 4 of 4

Switching between workbooks and populate the data

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    6

    Switching between workbooks and populate the data

    Hi,

    I have 2 workbooks. one is A.xls and other one is B.xls.
    structure of whose is as follows.

    A.xls->sheet1

    FundName securityId SecurityName Position
    fund1 rsec reliance_securities
    fund1 rcom reliance_comm

    B.xls->sheet1

    FundName securityId Position
    fund1 rsec 100
    fund2 rcom 150

    Here I have to search for fundname and securityid from A.xls and search it in B.xls and populate A.xls with the corresponding position using VBA.

    Thanks
    Last edited by hardik.r.shah; 07-02-2012 at 07:36 AM.

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

    Re: Switching between workbooks and populate the data

    Why do you want to do it using VBA? You can use multiple formulae for this such as match or vlookup.
    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]

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Switching between workbooks and populate the data

    what I mentioned here is just the part of my requirement. I have to check many more conditions and all. The place where I am struct while coding in VBA is here.

  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: Switching between workbooks and populate the data

    You can do a manual vlookup formula and record it while doing. This will give you the syntax what you should use in your code and alo help you to learn it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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