Following is my code...
Range("A1").Select 'Select cell A1 Application.SendKeys "BIZZARE{ENTER}", True
'Enters BIZZARE in A1 and focus goes to B2
Application.Wait (Now + TimeValue("0:00:02")) Application.SendKeys "{UP}", True 'Again focus on A1 Application.Wait (Now + TimeValue("0:00:02"))
'Range("A1").Select 'Just in case {UP} doesnt work
Selection.Copy 'Path 1 Range("B2").Select 'Path 1 ActiveSheet.Paste 'Path 1
Application.SendKeys ("^C") 'Path 2 Range("B2").Select 'Path 2 Application.SendKeys ("^V") 'Path 2
My code wanted to write BIZZARE in cell A1 and then also copy that contents to cell B2.But when I run this code then only BIZZARE appears in cell B2 and not A1.I tried to do the copying using 2 different methods, Path 1 or Path 2. If i comment both Path1 and Path2 statements then BIZZARE appears in cell A1.
Can anyone explain why this is happening so.
PS: If i remove Path1 or Path2 statements then BIZZARE appears on cell A1 perfectly.
Microsoft ISV Community Center Forums3
|