Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to Loop a column to find a company name, take its Drawn Value and copy and paste to another tab

Posted on 2014-11-11
3
Medium Priority
?
128 Views
Last Modified: 2014-11-19
Hi Guys, if you look at the attachment,in the "WTD commentary" tab, I have to populate column E with the "Drawn" balance of the companies in column B from the other tab "Daily GSFI PL" but in the column I. How can I create a Loop to do this in VBA code where it Loops down Column B from the tab "Daily GSFI PL, takes the data 8 columns along, copies and pastes it to the appropriate company in the WTD commentary tab and populates Column E "the Market Value" column?

Justin
Book3.xls
0
Comment
Question by:Justincut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 2000 total points
ID: 40436125
See attached file
Book3.xls
0
 

Author Comment

by:Justincut
ID: 40436222
I know how to use a Vlookup. The other tab is on another Excel File which I only get by opening an e-mail attachment, and I activate by using this Function:
Sub SelectMatchingWindow(MatchingFilename As String)

Dim NumberOfWindows As Integer
Dim Count1 As Integer
Dim MatchedWindowNumber As Integer
Dim WindowName As String

NumberOfWindows = Windows.Count

For Count1 = 1 To NumberOfWindows

    WindowName = Windows(Count1).Caption
   
    If InStr(WindowName, MatchingFilename) = 1 Then
        MatchedWindowNumber = Count1
    End If

Next Count1

If MatchedWindowNumber > 0 Then
    Windows(MatchedWindowNumber).Activate
End If



End Sub

Any ideas?
0
 

Author Comment

by:Justincut
ID: 40452941
I've requested that this question be deleted for the following reason:

Noone is answering the question
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Introduction to Processes

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question