Is there a way to use python and win32com to copy and paste, so that python scripts can run in the background, and not spoil the ability to "copy and paste" users?
from win32com.client import Dispatch
import win32com.client
xlApp = Dispatch("Excel.Application")
xlWb = xlApp.Workbooks.Open(filename_xls)
ws = xlWb.Worksheets(1)
xlApp.Visible=False
ws.Range('a1:k%s' % row).select
ws.Range('a1:k%s' % row).cut
ws.Range('a7').select
ws.paste
suppose the script runs continuously on a large collection of datasets ...
Well, another clarity on the issue, I need a formation, all this, so just grabbing the values โโof t is, of course, simple, but not quite what you need.
So let me tell you the following: What is there, why do I need to capture both the value and its forcing in python without the procedure of selecting, copying and pasting?
source
share