Excel: Working with named Range.NumberFormat in VBA: "General" vs. "Standard" -
A few questions about the range. Score format here - Hopefully anyone can answer them, because the web is hard to find, all the general conditions.
A small background: I'm trying to eliminate the "random" Error 1004 code: Number of category categories Unable to set property edit The message is when I try to set up, the error occurs. In a named format, the number format of the late-bound object, mainly working with "normal" or "standard". The object, the application is in 99% of the cases. Selection. Also, please, the most common reason for this error - protection on a sheet or workbook - does not apply here . From Excel 2003 to 2007, Microsoft has started a bug in VBA if I type I believe the "standard" is used in some languages instead of "normal." You should compare your results to .NumberFormatLocal. For the solution part If you are trying to set the number format to "normal" and getting errors, then just set the NumberForamt for the empty string. The form format will make the normal / standard.
in the instant window? Selection. Numeric and press Enter, I get "normal". If I'm running a macro with a breakpoint I'm some edines (not all, not approximate), then I usually get "standard" what is "standard"? Where does it come from? I want to choose a number format from a cell, and want to leave it on the other; In random moments, I can not implement "standard" like this, and the result is not like normal (in Excel 2003, it is never visible in the immediate window, and systematically fails to implement Even if I convert all instances of "standard" to "normal". I still sometimes
MyObject.NumberFormat = " General ". I have read in some places that it is better to implement the underlying format of a designated format, that is, to apply something normal (as I think standard); Thank you in advance for your assistance.
selection.NumberFormat = ""
Comments
Post a Comment