Using the "online" version of Microsoft Excel and its automation tool "Code Editor" I want to create a script which automatically selects a range and copies the values to the clipboard.
The script creation and the selection are already done, no need to discuss that please. :)
The main issue is the "copy to clipboard" aspect of the script. Everything I see online is either for VBA or just points me to the well known keyboard shortcut.
Can I have a keyboard sequence run from within the script? Is there an explicit command for copying to clipboard? Any advice? Maybe another approach? I feel like I am missing something obvious...
I've tried using workbook.getApplication.call but nothing seems to work.
I also attempted...
Dim objData As New MSForms.DataObject objData.SetText txt objData.PutInClipboard
Automate Workbutton should have predetermined Flows forCopy to Clipboardas the action. That's the only way I can think to get a copy to clipboard, considering Office Script is intended to interact with the cloud-based system and not utilize desktop functions, so should technically be improbable without some specific finagling which I am unaware.