I had a perfectly working VBA macro on my old machine, but when I switched over to a new computer, it suddenly gives an error code.
Something like this
Nr '5' Illegal procedure or argument
Things are a bit more complicated since the new machine (work computer so not installed by me) runs with Swedish language version of Office (hence the uncertainty of the exact phrasing of the error code above) , whereas my old computer runs with English ditto. Might the language of excel interfere with VBA coding? Or what is going on?
Old system:
Win XP SP3. Excel 2007 [English language]
New system:
Win 7 Professional, Excel 2007 [Swedish language]
The bit of code that causes the error is:
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=ISNUMBER(MATCH(A1,NV,0))"
where "NV" is a named range.
Any ideas?
Something like this
Nr '5' Illegal procedure or argument
Things are a bit more complicated since the new machine (work computer so not installed by me) runs with Swedish language version of Office (hence the uncertainty of the exact phrasing of the error code above) , whereas my old computer runs with English ditto. Might the language of excel interfere with VBA coding? Or what is going on?
Old system:
Win XP SP3. Excel 2007 [English language]
New system:
Win 7 Professional, Excel 2007 [Swedish language]
The bit of code that causes the error is:
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=ISNUMBER(MATCH(A1,NV,0))"
where "NV" is a named range.
Any ideas?