nagovind
Member
Dear All,
While working in Windows 7 this code was working in Excel 2013
But this same code is not working in Windows 10 and returns ASCI code ??
Interesting fact is if 2 more windows explorer (folders) are open this error appears
If the windows explorer (folders) are closed this same code is working well
Kindly advise the common solution to fix this
Regards
Govind
While working in Windows 7 this code was working in Excel 2013
But this same code is not working in Windows 10 and returns ASCI code ??
Interesting fact is if 2 more windows explorer (folders) are open this error appears
If the windows explorer (folders) are closed this same code is working well
Kindly advise the common solution to fix this
Code:
Dim objClipBoard As Object
Dim texttobecopied As String
MSForms.DataObject
Set objClipBoard = CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
lt = Application.ActiveCell.Address
kk = ActiveCell.Row
tt = "AT" & kk
'ActiveSheet.Range(tt) = "'VR'" & ActiveSheet.Name & "'!" & lt
texttobecopied = "='" & ActiveSheet.Name & "'!" & lt
With objClipBoard
.SetText texttobecopied
.PutInClipboard
End With
End Sub
Regards
Govind