hi,
I'm at my new work and i've got a small job from my boss, he wants me to correct a function in a excel macro. I'm quite new to vba programming so its a hard task for me. When i klick on the button to activate the macro i get the error Can't execute code in break mode. As far as i've understood this is because there is something else going on at the same time.
This is the begning of the function, it continues futher down but the debug says the problem is here(the bold underlined sentance). Is the problem here or is it somewhere else in the gaint excel document, its very big.:
Function IndividX()
Dim JobLd(256)
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = False
Sheets("ResourcePlanW").Range("A7:IV6000").ClearContents
EndRowP = Sheets("ResourcePlan").Columns("A").Find("EndRow").Row - 1
FirstRowP = 8
FirstClmnRP = Sheets("ResourcePlanX").Rows(4).Find("Datum").Column + 2
Sheets("ResourcePlanW").Range("A8:IV6000").Select
With Selection.Font
'.Name = "Arial"
.FontStyle = "Normal"
'.Size = 10
'.Strikethrough = False
'.Superscript = False
'.Subscript = False
'.OutlineFont = False
'.Shadow = False
'.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Selection.Interior.ColorIndex = xlNone
NxtClmn = 7
I'm at my new work and i've got a small job from my boss, he wants me to correct a function in a excel macro. I'm quite new to vba programming so its a hard task for me. When i klick on the button to activate the macro i get the error Can't execute code in break mode. As far as i've understood this is because there is something else going on at the same time.
This is the begning of the function, it continues futher down but the debug says the problem is here(the bold underlined sentance). Is the problem here or is it somewhere else in the gaint excel document, its very big.:
Function IndividX()
Dim JobLd(256)
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = False
Sheets("ResourcePlanW").Range("A7:IV6000").ClearContents
EndRowP = Sheets("ResourcePlan").Columns("A").Find("EndRow").Row - 1
FirstRowP = 8
FirstClmnRP = Sheets("ResourcePlanX").Rows(4).Find("Datum").Column + 2
Sheets("ResourcePlanW").Range("A8:IV6000").Select
With Selection.Font
'.Name = "Arial"
.FontStyle = "Normal"
'.Size = 10
'.Strikethrough = False
'.Superscript = False
'.Subscript = False
'.OutlineFont = False
'.Shadow = False
'.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Selection.Interior.ColorIndex = xlNone
NxtClmn = 7