Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Help needed for old thread Please ??

Hi all, firstly i apologise for my placing this but i need an answer if
possible to my thread from Saturday listed below, as it is urgent...

Help needed with Complicated code (For me !!)

Thank you for any help in advance

Best regards,

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Help needed for old thread Please ??

Not listed Les, and can't see that old thread.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Les Stout" wrote in message
...
Hi all, firstly i apologise for my placing this but i need an answer if
possible to my thread from Saturday listed below, as it is urgent...

Help needed with Complicated code (For me !!)

Thank you for any help in advance

Best regards,

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Help needed for old thread Please ??

You got an answer from Tom Ogilvy which is green ticked as having answered
the question and a further esponse from Martin Fishlock which was never
responded to so I guess posters have assumed that the green tick indicated
problem resolved.

Mike

"Les Stout" wrote:

Hi all, firstly i apologise for my placing this but i need an answer if
possible to my thread from Saturday listed below, as it is urgent...

Help needed with Complicated code (For me !!)

Thank you for any help in advance

Best regards,

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Help needed for old thread Please ??

Ok, this is my best guess:

Sub TestTom()
'
Dim todaysDateLong As String
Dim sh1 As Worksheet, sh2 As Worksheet
Dim sh6 As Worksheet
Dim rng1 As Range, rng2 As Range
Dim rng3 As Range
Dim rw As Long, cell As Range
Dim res As Variant

ActiveWorkbook.Worksheets("PU0703LCS").Rows("1:1") .Copy
ActiveWorkbook.Worksheets.Add(Befo=ActiveSheet) .Name = "LCS_KTL AI
Diff"
ActiveSheet.Paste

Set sh1 = Worksheets("PU0703LCS")
Set sh2 = Worksheets("KTL")
Set sh6 = Worksheets("LCS_KTL AI Diff")
rw = 2
Set rng1 = sh1.Range(sh1.Cells(2, 1), sh1.Cells(2, 1).End(xlDown))
Set rng2 = sh2.Range(sh2.Cells(2, 1), sh2.Cells(2, 1).End(xlDown))
For Each cell In rng1
If Application.CountIf(rng2, cell.Value) = 0 Then

Else
res = Application.Match(cell.Value, rng2, 0)
Set rng3 = rng2(res)
If cell.Offset(0, 1) sh2.Cells(rng3.Row, "J") Then
cell.EntireRow.Copy sh6.Cells(rw, 1)
rw = rw + 1
End If
End If
Next

Range("A1").Select
Columns("A:O").EntireColumn.AutoFit
End Sub

It copies about 4 records.
--
Regards,
Tom Ogilvy


"Les Stout" wrote:

Hi all, firstly i apologise for my placing this but i need an answer if
possible to my thread from Saturday listed below, as it is urgent...

Help needed with Complicated code (For me !!)

Thank you for any help in advance

Best regards,

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to start a new thread? Jack Sons[_2_] Excel Discussion (Misc queries) 3 June 1st 10 07:58 PM
Shared Wb-Thread 2 Jim May Excel Discussion (Misc queries) 0 September 2nd 06 04:24 PM
Yet another Look up thread... mbachurski Excel Discussion (Misc queries) 3 January 26th 06 10:33 PM
all the messages in the thread R.VENKATARAMAN Excel Programming 0 November 8th 05 05:58 AM
How to thread Ernesto[_2_] Excel Programming 0 July 6th 04 07:40 PM


All times are GMT +1. The time now is 04:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"