per our support engineer:
I worked on the issue and got a sample code, on my machine it is working fine. There is no flickering or unnecessary scrolling of screen. Please pass this code to ISV and check if it solves his problem.
Dim MyRange As String
Range("A1:c100").Select ' Select the source range only once
Selection.Copy ' Copy the source range
MyRange = "E1:g10000" 'Set the Range
'Use the paste special option on the range on which you want to apply the formatting
Range(MyRange).PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False 'Make the Application CutCopyMode False
Use this code if you need multiple ranges to be copied.
Dim MyRange As String
Range("A1").Select ' Select the source range only once
Selection.Copy ' Copy the source range
For I = 1 To 10000 'Execute a Loop if different range needs to be selected
MyRange = "E" + Str(I)
'Use the paste special option on the variety of ranges on which you want to apply the formatting
Range(MyRange).PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next
Application.CutCopyMode = False 'Make the Application CutCopyMode False
End Sub
-brenda (ISV Buddy Team)
|