Advertisement
Guest User

vba ergjan

a guest
Jan 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. Sub Makrotusindetalsseperator()
  2. '
  3. ' Makrotusindetalsseperator Makro
  4. '
  5. Sheets("SMPDKK").Select
  6. Columns("B:B").Select
  7. With Selection
  8. .HorizontalAlignment = xlCenter
  9. .VerticalAlignment = xlBottom
  10. End With
  11.  
  12. With Selection
  13. .HorizontalAlignment = xlLeft
  14. .VerticalAlignment = xlBottom
  15.  
  16. End With
  17. Columns("D:E").Select
  18. Selection.NumberFormat = "#,##0.00"
  19.  
  20. '-------------------------------------------------
  21. Sheets("SMPEUR").Select
  22. Columns("B:B").Select
  23. With Selection
  24. .HorizontalAlignment = xlCenter
  25. .VerticalAlignment = xlBottom
  26. End With
  27.  
  28. With Selection
  29. .HorizontalAlignment = xlLeft
  30. .VerticalAlignment = xlBottom
  31.  
  32. End With
  33. Columns("D:E").Select
  34. Selection.NumberFormat = "#,##0.00"
  35.  
  36. '-------------------------------------
  37. Sheets("SBPDKK").Select
  38. Columns("B:B").Select
  39. With Selection
  40. .HorizontalAlignment = xlCenter
  41. .VerticalAlignment = xlBottom
  42. End With
  43.  
  44. With Selection
  45. .HorizontalAlignment = xlLeft
  46. .VerticalAlignment = xlBottom
  47.  
  48. End With
  49. Columns("D:E").Select
  50. Selection.NumberFormat = "#,##0.00"
  51.  
  52. '-------------------------------------------
  53. Sheets("SBPEUR").Select
  54. Columns("B:B").Select
  55. With Selection
  56. .HorizontalAlignment = xlCenter
  57. .VerticalAlignment = xlBottom
  58. End With
  59.  
  60. With Selection
  61. .HorizontalAlignment = xlLeft
  62. .VerticalAlignment = xlBottom
  63.  
  64. End With
  65. Columns("D:E").Select
  66. Selection.NumberFormat = "#,##0.00"
  67.  
  68. '------------------------------------------------
  69. Sheets("KSDKK").Select
  70. Columns("B:B").Select
  71. With Selection
  72. .HorizontalAlignment = xlCenter
  73. .VerticalAlignment = xlBottom
  74. End With
  75.  
  76. With Selection
  77. .HorizontalAlignment = xlLeft
  78. .VerticalAlignment = xlBottom
  79.  
  80. End With
  81. Columns("D:E").Select
  82. Selection.NumberFormat = "#,##0.00"
  83.  
  84. '------------------------------------------------------
  85. '------------------------------------------------
  86. Sheets("KSDKKEJENDOM").Select
  87. Columns("B:B").Select
  88. With Selection
  89. .HorizontalAlignment = xlCenter
  90. .VerticalAlignment = xlBottom
  91. End With
  92.  
  93. With Selection
  94. .HorizontalAlignment = xlLeft
  95. .VerticalAlignment = xlBottom
  96.  
  97. End With
  98. Columns("D:E").Select
  99. Selection.NumberFormat = "#,##0.00"
  100.  
  101. '------------------------------------------------
  102. Sheets("SKAREFOODDKK").Select
  103. Columns("B:B").Select
  104. With Selection
  105. .HorizontalAlignment = xlCenter
  106. .VerticalAlignment = xlBottom
  107. End With
  108.  
  109. With Selection
  110. .HorizontalAlignment = xlLeft
  111. .VerticalAlignment = xlBottom
  112.  
  113. End With
  114. Columns("D:E").Select
  115. Selection.NumberFormat = "#,##0.00"
  116.  
  117. '------------------------------------------------
  118. Sheets("SKAREFOODEUR").Select
  119. Columns("B:B").Select
  120. With Selection
  121. .HorizontalAlignment = xlCenter
  122. .VerticalAlignment = xlBottom
  123. End With
  124.  
  125. With Selection
  126. .HorizontalAlignment = xlLeft
  127. .VerticalAlignment = xlBottom
  128.  
  129. End With
  130. Columns("D:E").Select
  131. Selection.NumberFormat = "#,##0.00"
  132.  
  133.  
  134. '------------------------------------------------
  135. Sheets("VESJBDKK").Select
  136. Columns("B:B").Select
  137. With Selection
  138. .HorizontalAlignment = xlCenter
  139. .VerticalAlignment = xlBottom
  140. End With
  141.  
  142. With Selection
  143. .HorizontalAlignment = xlLeft
  144. .VerticalAlignment = xlBottom
  145.  
  146. End With
  147. Columns("D:E").Select
  148. Selection.NumberFormat = "#,##0.00"
  149.  
  150.  
  151. '------------------------------------------------
  152. Sheets("SKARERASKDKK").Select
  153. Columns("B:B").Select
  154. With Selection
  155. .HorizontalAlignment = xlCenter
  156. .VerticalAlignment = xlBottom
  157. End With
  158.  
  159. With Selection
  160. .HorizontalAlignment = xlLeft
  161. .VerticalAlignment = xlBottom
  162.  
  163. End With
  164. Columns("D:E").Select
  165. Selection.NumberFormat = "#,##0.00"
  166.  
  167.  
  168. '------------------------------------------------
  169. Sheets("OSTDKK").Select
  170. Columns("B:B").Select
  171. With Selection
  172. .HorizontalAlignment = xlCenter
  173. .VerticalAlignment = xlBottom
  174. End With
  175.  
  176. With Selection
  177. .HorizontalAlignment = xlLeft
  178. .VerticalAlignment = xlBottom
  179.  
  180. End With
  181. Columns("D:E").Select
  182. Selection.NumberFormat = "#,##0.00"
  183.  
  184.  
  185. '------------------------------------------------
  186. Sheets("OSTEUR").Select
  187. Columns("B:B").Select
  188. With Selection
  189. .HorizontalAlignment = xlCenter
  190. .VerticalAlignment = xlBottom
  191. End With
  192.  
  193. With Selection
  194. .HorizontalAlignment = xlLeft
  195. .VerticalAlignment = xlBottom
  196.  
  197. End With
  198. Columns("D:E").Select
  199. Selection.NumberFormat = "#,##0.00"
  200.  
  201.  
  202. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement