Hi
I'm running similar (not identical) Excel VBA code in 2 different environments. However, both with Microsoft/Office 365 packages and the same Excel v2406 (build 17726.20126)
Both codes have been running fine for months if not years. But similar error messages since this morning (fresh updates for Excel 365?). From now on I can't address SOME named ranges in Excel all of a sudden (not all are affected). For an example:
Range("API_input").Activate
gives Run-time error 1004 (this named range obviously exists - and has been existing ever since this code has been running). If I rename the affected named range into something else, e.g. "API_input_x" then addressing the named range in VBA code will work. However renaming, saving and changing back into original name, won't change anything. Also .xlsm -> .xlsx -> .xlsm saving didn't fix the issue.
Are other people experiencing named range problems with fresh Excel?
This is just a random code example how I test, in reality the VBA code inserts a string variable into named range.
I'm running similar (not identical) Excel VBA code in 2 different environments. However, both with Microsoft/Office 365 packages and the same Excel v2406 (build 17726.20126)
Both codes have been running fine for months if not years. But similar error messages since this morning (fresh updates for Excel 365?). From now on I can't address SOME named ranges in Excel all of a sudden (not all are affected). For an example:
Range("API_input").Activate
gives Run-time error 1004 (this named range obviously exists - and has been existing ever since this code has been running). If I rename the affected named range into something else, e.g. "API_input_x" then addressing the named range in VBA code will work. However renaming, saving and changing back into original name, won't change anything. Also .xlsm -> .xlsx -> .xlsm saving didn't fix the issue.
Are other people experiencing named range problems with fresh Excel?
This is just a random code example how I test, in reality the VBA code inserts a string variable into named range.