If i may post link to question from OzGrid? Sorry MrExcel
Comma decimal separator turns into dot after Copy code?
Comma decimal separator turns into dot after Copy code?
'instead of this:
Range("H16:J19").Select
Selection.ClearContents
Range("F22").Select
Selection.ClearContents
Range("F21").Select
Selection.ClearContents
Range("F19").Select
Selection.ClearContents
Range("F18").Select
Selection.ClearContents
Range("F16:F17").Select
Range("F17").Activate
Selection.ClearContents
'you could just write
Range("H16:J19, F16:F19, F21:F22").ClearContents
'this:
Sheets("Sheet1").Select
Range("M" & ActiveCell.Row).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("F19").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'could be shortened to:
Sheets("Sheet1").Range("M" & ActiveCell.Row).Copy
Sheets("Sheet2").Range("F19").PasteSpecial xlPasteValues
I figured out after three months. Problem is in PrintPreview, but WHYYY MICROSOFT, WHY!
Code:' In case there is no printing device: On Error Resume Next Application.Dialogs(xlDialogPrinterSetup).Show Selection.PrintOut Preview:=True
When i set Selection.PrintOut Preview:=False everything is fine, no error.
But, why! I really need print preview ;(