Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. Range("B31") = Application.WorksheetFunction.EDate(mystart, 0) + 1
  2. mystart = Range("B30")
  3. For x = 31 To 100
  4. If mystart >= myend Then Exit For
  5. Cells(x, 2) = Application.WorksheetFunction.EDate(mystart, 0) + 1
  6. mystart = Cells(x, 2)
  7.  
  8. Next x
  9.  
  10. Range("C31") = mystartprice + Range("C27")
  11. mystartprice = Range("C30")
  12. For y = 31 To 100
  13. If mystartprice >= myendprice Then Exit For
  14. Cells(y, 3) = mystartprice + Range("C27")
  15. mystartprice = Cells(y, 3)
  16. Next y
  17.  
  18. Range("E31") = Application.WorksheetFunction.EDate(mystart, 0) + 1
  19. mystart = Range("E30")
  20. For a = 31 To 100
  21. If mystart >= myend Then Exit For
  22. Cells(a, 5) = Application.WorksheetFunction.EDate(mystart, 0) + 1
  23. mystart = Cells(a, 5)
  24. Next a
  25.  
  26. Range("F31") = mystartprice + Range("F27")
  27. mystartprice = Range("F30")
  28. For b = 31 To 100
  29. If mystartprice >= myendprice Then Exit For
  30. Cells(b, 6) = mystartprice + Range("F27")
  31. mystartprice = Cells(b, 6)
  32. Next b
  33.  
  34. Range("H31") = Application.WorksheetFunction.EDate(mystart, 0) + 1
  35. mystart = Range("H30")
  36. For c = 31 To 100
  37. If mystart >= myend Then Exit For
  38. Cells(c, 8) = Application.WorksheetFunction.EDate(mystart, 0) + 1
  39. mystart = Cells(c, 8)
  40. Next c
  41.  
  42. Range("I31") = mystartprice + Range("I27")
  43. mystartprice = Range("I30")
  44. For d = 31 To 100
  45. If mystartprice >= myendprice Then Exit For
  46. Cells(d, 9) = mystartprice + Range("I27")
  47. mystartprice = Cells(d, 9)
  48. Next d
  49.  
  50. Range("K31") = Application.WorksheetFunction.EDate(mystart, 0) + 1
  51. mystart = Range("K30")
  52. For e = 31 To 100
  53. If mystart >= myend Then Exit For
  54. Cells(e, 11) = Application.WorksheetFunction.EDate(mystart, 0) + 1
  55. mystart = Cells(e, 11)
  56. Next e
  57.  
  58. Range("L31") = mystartprice + Range("L27")
  59. mystartprice = Range("L30")
  60. For f = 31 To 100
  61. If mystartprice >= myendprice Then Exit For
  62. Cells(f, 12) = mystartprice + Range("L27")
  63. mystartprice = Cells(f, 12)
  64. Next f
  65.  
  66. Range("N31") = Application.WorksheetFunction.EDate(mystart, 0) + 1
  67. mystart = Range("N30")
  68. For g = 31 To 100
  69. If mystart >= myend Then Exit For
  70. Cells(g, 14) = Application.WorksheetFunction.EDate(mystart, 0) + 1
  71. mystart = Cells(g, 14)
  72. Next g
  73.  
  74. Range("O31") = mystartprice + Range("O27")
  75. mystartprice = Range("O30")
  76. For h = 31 To 100
  77. If mystartprice >= myendprice Then Exit For
  78. Cells(h, 15) = mystartprice + Range("O27")
  79. mystartprice = Cells(h, 15)
  80. Next h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement