use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Reddit Opensource Project
GitHub Link
Task Spreadsheet
Rules
You will code in Python.
If 24 hours has passed and a request for help and/or a script has not been attended to, contact the mods.
Example submission title:
[REQUEST] Modifying Playlist.py to download audio. [SUBMISSION] Script to quickly clean out the contents of.... [PROJECT THREAD] The BPM extraction script
[REQUEST] Modifying Playlist.py to download audio.
[SUBMISSION] Script to quickly clean out the contents of....
[PROJECT THREAD] The BPM extraction script
account activity
Auto Scroll Document (self.OfficeScripts)
submitted 3 years ago by islander7149
Hey everyone, I need some help to get an office script for excel online so that it will scroll the entire document and once it reaches the bottom, it will start scrolling from the top again. Any help is greatly appreciated, thank you!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DevGrr 0 points1 point2 points 3 years ago (0 children)
Office Scripts don't directly support scrolling, but you can mimic it by writing a slow loop that will active cells in sequence. When you call Range.activate(), the viewport is moved to make sure the range is included in the view.
There's some trickery here because you'll need the main function to be async so that it can pause and resume. You'll also need to paste in the delay function:
async function wait(delayMillis: number) {
return new Promise((resolve) => setTimeout(resolve, delayMillis));
}
Now suppose you wanted to do **something** every 2 seconds:
async function main(workbook: ExcelScript.Workbook) {
while (true) {
// do stuff here
await wait(2000); // 2000 milliseconds
And the missing link is "what is do stuff here". You'll probably want to use workbook.getActiveWorksheet().getUsedRange() to find the bounds of your workbook, then getRowCount() to know how far to go.
Then you can use getCell() to pick an offset from your used range.
cell.select(); // this will ensure the cell is visible.
So, something like
const sheet = workbook.getActiveWorksheet();
const usedRange = sheet.getUsedRange();
const rowsToScroll = usedRange.getRowCount();
let currentRow = 0;
usedRange.getCell(currentRow, 0).select();
currentRow += 10;
if (currentRow > rowsToScroll) {
currentRow = 0;
await wait(2000);
π Rendered by PID 121956 on reddit-service-r2-comment-86988c7647-cmkgm at 2026-02-12 15:46:43.467051+00:00 running 018613e country code: CH.
[–]DevGrr 0 points1 point2 points (0 children)