Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Monitoring Changes

Hi,

I have two worksheets , 5 colums and 5 rows,
to monitor differences btw the two I want to do the following:

If Cell A3 has changed I want to copy the whole row (3rd row), embolden A3
and
copy this over to another spreadsheet, in my code below the embolden part
doesn't function, your help is greatly appreciated.


Sub des()

k = 1
For i = 1 To 5
For j = 1 To 5
If Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i, j)
< Workbooks("WIP 13-12-04").Worksheets("Jobs").Cells(i, j) Then
Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i,
j).EntireRow.Copy Destination:=Worksheets("Changes").Cells(k, 1)
And Workbooks("WIP 20-12-04").Worksheets("Changes").Cells(i, j).Font.Bold =
True
k = k + 1
End If
Next j
Next i
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Monitoring Changes

Might just be me - but your bolding doesnt seem visible...
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Monitoring Changes

It isn't totally clear what needs to be emboldened, but I assumed the cell
causing the row to be copied.


Sub des()

k = 1
For i = 1 To 5
For j = 1 To 5
If Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i, j) _
< Workbooks("WIP 13-12-04").Worksheets("Jobs").Cells(i, j) Then
Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i,j) _
.EntireRow.Copy Destination:=Workbooks("WIP 20-12-04"). _
Worksheets("Changes").Cells(k, 1)
Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i,j) _
.Font.Bold = True
k = k + 1
End If
Next j
Next i
End Sub

Note that if A3 and B3 are different, then row 3 would be copied twice.

--
Regards,
Tom Ogilvy

"teresa" wrote in message
...
Hi,

I have two worksheets , 5 colums and 5 rows,
to monitor differences btw the two I want to do the following:

If Cell A3 has changed I want to copy the whole row (3rd row), embolden A3
and
copy this over to another spreadsheet, in my code below the embolden part
doesn't function, your help is greatly appreciated.


Sub des()

k = 1
For i = 1 To 5
For j = 1 To 5
If Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i,

j)
< Workbooks("WIP 13-12-04").Worksheets("Jobs").Cells(i, j) Then
Workbooks("WIP 20-12-04").Worksheets("Jobs").Cells(i,
j).EntireRow.Copy Destination:=Worksheets("Changes").Cells(k, 1)
And Workbooks("WIP 20-12-04").Worksheets("Changes").Cells(i, j).Font.Bold

=
True
k = k + 1
End If
Next j
Next i
End Sub



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
Diabetic Monitoring streborluap Excel Discussion (Misc queries) 7 February 17th 09 10:16 AM
monitoring links mohavv Excel Discussion (Misc queries) 0 December 8th 08 12:36 AM
monitoring use Sanford Lefkowitz Excel Discussion (Misc queries) 3 October 20th 06 08:47 PM
Monitoring Data SenojNW Excel Discussion (Misc queries) 8 August 7th 05 10:22 AM
Break monitoring workbook gr8guy Excel Programming 1 April 28th 04 02:46 PM


All times are GMT +1. The time now is 07:10 PM.

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

About Us

"It's about Microsoft Excel"