Please clarify what you mean by "scale". The size of the spreadsheet? The zoom factor in the view? The data within it? Please be very specific about what you expected and what you're seeing.
Please also, if possible, share the script you're using (if you believe it is the cause) and some repro steps. Finally please provide the version of Excel you're using.