LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Comparing and updating sheets.

SUB MACRO_RUN

Call neha1
Call neha2
Call neha4
Call neha5
Call neha6

End Sub

Function neha1()

For B = 2 To 50
For a = 3 To 50

If Worksheets("Activity").Cells(B, 4).Value =
Worksheets("IP_MPLS").Cells(a, 1).Value Then
Worksheets("IP_MPLS").Cells(a, 32).Value =
Worksheets("Activity").Cells(B, 10).Value
Worksheets("IP_MPLS").Cells(a, 21).Value =
Worksheets("Activity").Cells(B, 1).Value
Worksheets("IP_MPLS").Cells(a, 22).Value =
Worksheets("IP_MPLS").Cells(a, 22).Value & ". ;" &
Worksheets("Activity").Cells(B, 2).Value & ";" &
Worksheets("Activity").Cells(B, 8).Value
End If


Next a
Next B

End Function
Function neha2()

B = 2
For B = 2 To 50
For a = 3 To 100

If Worksheets("Activity").Cells(B, 4).Value =
Worksheets("BB").Cells(a, 1).Value Then
Worksheets("BB").Cells(a, 32).Value =
Worksheets("Activity").Cells(B, 10).Value
Worksheets("BB").Cells(a, 21).Value =
Worksheets("Activity").Cells(B, 1).Value
Worksheets("bb").Cells(a, 22).Value =
Worksheets("BB").Cells(a, 22).Value & ". ;" &
Worksheets("Activity").Cells(B, 2).Value & ";" &
Worksheets("Activity").Cells(B, 8).Value

End If
Next a
Next B

End Function

Function neha4()

B = 2
For B = 2 To 50
For a = 3 To 100

If Worksheets("Activity").Cells(B, 4).Value =
Worksheets("DGE").Cells(a, 1).Value Then
Worksheets("DGE").Cells(a, 32).Value =
Worksheets("Activity").Cells(B, 10).Value
Worksheets("DGE").Cells(a, 21).Value =
Worksheets("Activity").Cells(B, 1).Value
Worksheets("DGE").Cells(a, 22).Value =
Worksheets("DGE").Cells(a, 22).Value & ". ;" &
Worksheets("Activity").Cells(B, 2).Value & ";" &
Worksheets("Activity").Cells(B, 8).Value

End If
Next a
Next B

End Function



Function neha5()

B = 2
For B = 2 To 50
For a = 3 To 100

If Worksheets("Activity").Cells(B, 4).Value =
Worksheets("IPLC VCIPLC").Cells(a, 1).Value Then
Worksheets("IPLC VCIPLC").Cells(a, 32).Value =
Worksheets("Activity").Cells(B, 10).Value
Worksheets("IPLC VCIPLC").Cells(a, 21).Value =
Worksheets("Activity").Cells(B, 1).Value
Worksheets("IPLC VCIPLC").Cells(a, 22).Value =
Worksheets("IPLC VCIPLC").Cells(a, 22).Value & ". ;" &
Worksheets("Activity").Cells(B, 2).Value & ";" &
Worksheets("Activity").Cells(B, 8).Value

End If
Next a
Next B

End Function


Function neha6()

B = 2
For B = 2 To 50
For a = 3 To 150

If Worksheets("Activity").Cells(B, 4).Value =
Worksheets("Voice").Cells(a, 1).Value Then
Worksheets("Voice").Cells(a, 31).Value =
Worksheets("Activity").Cells(B, 10).Value
Worksheets("Voice").Cells(a, 10).Value =
Worksheets("Activity").Cells(B, 1).Value
Worksheets("VOICE").Cells(a, 21).Value =
Worksheets("VOICE").Cells(a, 22).Value & ". ;" &
Worksheets("Activity").Cells(B, 2).Value & ";" &
Worksheets("Activity").Cells(B, 8).Value

End If
Next a
Next B

End Function
===================================
All I am doing with this code is

Auto update of Column J (Activity sheet) into column V of
Voice, BB, IPLC VCIPLC, IP_MPLS and BB sheet. (Replacement of the
content).
Auto update of Column H (Activity sheet) into column AF of
Voice, BB, IPLC VCIPLC, IP_MPLS and BB sheet. (Additon to the existing
cell content in the format as todaydate;update).

Now code written is ineffieicinet and takes lot of time.
Please can anyone work on this and advise changes.Please take this
important
 
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
Comparing and updating two spreadsheets Kaylen Excel Discussion (Misc queries) 8 January 30th 09 11:22 PM
Updating Cells after comparing two worksheets Monomeeth Excel Programming 0 January 23rd 08 10:36 PM
Comparing Data and Updating a worksheet rbiggs Excel Discussion (Misc queries) 0 December 12th 06 12:52 AM
Comparing and updating worksheets based on cell content Dave Excel Programming 0 March 3rd 06 06:18 PM
Comparing data and updating spreadsheets mvhutton Excel Discussion (Misc queries) 3 July 11th 05 08:38 PM


All times are GMT +1. The time now is 11:31 PM.

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"