+ Reply to Thread
Results 1 to 2 of 2

Simple Problem I think

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    45

    Simple Problem I think

    Application.ScreenUpdating = 0
    I have the following code to match the date and variable to copy and paste data from "Data Check" to "DCF Equity" for just one column. Below it is set up for column F. However, I would like to update the program so that it copies and pastes data for F14, G14, H14, I14, and K14. I am not sure how to do that?


    Set ms = Sheets("DCF Equity")

    MatchDate = Sheets("DCF Equity").Range("F14")


    With Sheets("Data Check")


    Set rFind = .Rows(1).Find(MatchDate, LookIn:=xlValues, LookAt:=xlWhole)

    If Not rFind Is Nothing Then

    For Each Cel In ms.Range("B16", ms.Range("B" & Rows.Count).End(xlUp))

    Set rng = .Columns(2).Find(Cel, LookIn:=xlValues, LookAt:=xlWhole)

    If Not rng Is Nothing Then
    ms.Range("F" & Cel.Row) = .Cells(rng.Row, rFind.Column)
    End If
    Next
    End If
    End With
    Set ms = Nothing
    Set ws = Nothing
    Set rFind = Nothing
    Set rng = Nothing
    Application.ScreenUpdating = True

    Application.ScreenUpdating = 0

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Simple Problem I think

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Also...
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until these moderation requests are fulfilled, as per Forum Rule 7)
    Last edited by FDibbins; 01-01-2014 at 07:50 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My problem is simple - no - it's me that's simple...
    By Glenn Kennedy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-08-2012, 02:20 PM
  2. Simple problem...please help
    By cballard2217 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2006, 10:12 PM
  3. Help - Simple Problem
    By Steel Monkey in forum Excel General
    Replies: 3
    Last Post: 04-12-2006, 02:07 AM
  4. Simple problem
    By Mr. NDIS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2005, 09:10 PM
  5. Simple for.. next problem
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2005, 08:06 AM

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