Added Macros together via Record need to loop at change in cell value

kac1125

Board Regular
Joined
Jul 31, 2014
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have merged several Macros together via the record button. What I want it to do now is to repeat itself at a change of value in column A. For example A1-A10 are the same I would want it to run for those. Then A11 is different, I would want it to insert a row and run again and so forth. Please let me know if you have any thoughts:
This is my code after I recorded them all together.

Sub Final()
'
' Final Macro
'


'
Application.Run "'Copy of Order Create Template.xlsm'!Step1"
Application.Run "'Copy of Order Create Template.xlsm'!Ne"
Application.Run "'Copy of Order Create Template.xlsm'!adjpallet"
Application.Run "'Copy of Order Create Template.xlsm'!AdjWeight"
Application.Run "'Copy of Order Create Template.xlsm'!test4"
Application.Run "'Copy of Order Create Template.xlsm'!test5"
Application.Run "'Copy of Order Create Template.xlsm'!test6"
Application.Run "'Copy of Order Create Template.xlsm'!test7"
Application.Run "'Copy of Order Create Template.xlsm'!test8"
End Sub

Thanks in advance.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top