+ Reply to Thread
Results 1 to 2 of 2

Whats wrong with this?

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Whats wrong with this?

    If Worksheets("SJournal").Cells(t, "A") = Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t, "J") = Worksheets("SJournal").Cells(t, "J")
    If Worksheets("SJournal").Cells(t, "A") = Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t, "K") = Worksheets("SJournal").Cells(t, "K")
    If Worksheets("SJournal").Cells(t, "A") = Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t, "L") = Worksheets("SJournal").Cells(t, "L")
    If Worksheets("SJournal").Cells(t, "A") = Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t, "M") = Worksheets("SJournal").Cells(t, "M")
    Next t

    Thanks,
    Met

  2. #2
    Norman Jones
    Guest

    Re: Whats wrong with this?

    Hi Metrazal,

    > Whats wrong with this?


    It would improve your prospects of receiving a useful response if you were
    to indicate the specific problems which you experience with the reported
    code.


    ---
    Regards,
    Norman


    "Metrazal" <[email protected]> wrote in
    message news:[email protected]...
    >
    > If Worksheets("SJournal").Cells(t, "A") = Worksheets("Invoice").Cells(t,
    > "B") Then Worksheets("Invoice").Cells(t, "J") =
    > Worksheets("SJournal").Cells(t, "J")
    > If Worksheets("SJournal").Cells(t, "A") =
    > Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t,
    > "K") = Worksheets("SJournal").Cells(t, "K")
    > If Worksheets("SJournal").Cells(t, "A") =
    > Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t,
    > "L") = Worksheets("SJournal").Cells(t, "L")
    > If Worksheets("SJournal").Cells(t, "A") =
    > Worksheets("Invoice").Cells(t, "B") Then Worksheets("Invoice").Cells(t,
    > "M") = Worksheets("SJournal").Cells(t, "M")
    > Next t
    >
    > Thanks,
    > Met
    >
    >
    > --
    > Metrazal
    > ------------------------------------------------------------------------
    > Metrazal's Profile:
    > http://www.excelforum.com/member.php...o&userid=31648
    > View this thread: http://www.excelforum.com/showthread...hreadid=516199
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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