{"id":29956136,"url":"https://github.com/sjain882/excel-vba-macros","last_synced_at":"2026-02-10T10:34:58.352Z","repository":{"id":304854638,"uuid":"1020240173","full_name":"sjain882/Excel-VBA-Macros","owner":"sjain882","description":"My favourite Excel macros - some by me, some by others ","archived":false,"fork":false,"pushed_at":"2025-07-15T16:16:58.000Z","size":7344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T18:19:10.882Z","etag":null,"topics":["excel","excel-macro","excel-macros","excel-vba","vba","vba-excel","vba-macro","vba-macros","vba-script"],"latest_commit_sha":null,"homepage":"","language":"VBA","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjain882.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-15T14:57:23.000Z","updated_at":"2025-07-15T16:17:01.000Z","dependencies_parsed_at":"2025-07-16T16:21:57.588Z","dependency_job_id":"76574013-d8d3-4e41-a5c6-90affedb75aa","html_url":"https://github.com/sjain882/Excel-VBA-Macros","commit_stats":null,"previous_names":["sjain882/excel-vba-macros"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjain882/Excel-VBA-Macros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjain882%2FExcel-VBA-Macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjain882%2FExcel-VBA-Macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjain882%2FExcel-VBA-Macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjain882%2FExcel-VBA-Macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjain882","download_url":"https://codeload.github.com/sjain882/Excel-VBA-Macros/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjain882%2FExcel-VBA-Macros/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29297216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T09:11:24.369Z","status":"ssl_error","status_checked_at":"2026-02-10T09:10:47.789Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","excel-macro","excel-macros","excel-vba","vba","vba-excel","vba-macro","vba-macros","vba-script"],"created_at":"2025-08-03T18:12:08.976Z","updated_at":"2026-02-10T10:34:58.348Z","avatar_url":"https://github.com/sjain882.png","language":"VBA","funding_links":[],"categories":[],"sub_categories":[],"readme":"Macros created by me, unless otherwise specified.\n\n# Macros\n\n### Embed Image Links\n\nInfo:\n\n- Automatically embeds images in the place of image links\n\n- Can be re-run over cells to \"fill in gaps\" non-destructively\n\n- Works with URLs not ending in image extension, e.g, discord image link with token query param\n\n- If you add rows/columns around imported images, the embedded images move automatically\n\n- Saves the image with the document, instead of links which can go down\n\n- WARNING: No undo available! Duplicate your file before proceeding\n\n- Original source: by kresty @ https://superuser.com/a/1404121\n\n- Reworked by me:\n\n    - Images are no longer stretched to fill cell - now preserves aspect ratio\n\n    - Images are now properly resized to fit perfectly inside cell\n\n    - Images are centered in the cell if smaller than the cell\n\n    - Macro executes on currently selected cells, rather than having to manually specify range every time\n\n    - Code cleaned up and commented\n\n- Example before: `LFRD 2025 Bus Previews - B4 - With Hyperlink.xlsm`\n\n- Example after: `LFRD 2025 Bus Previews.xlsm`\n\n\u003cdetails\u003e\n  \u003csummary\u003e🖼 Preview\u003c/summary\u003e\n\n![Before](https://github.com/sjain882/Excel-VBA-Macros/blob/main/.github/Previews/Embed%20Image%20Links/Before.png?raw=true)\n\n![After](https://github.com/sjain882/Excel-VBA-Macros/blob/main/.github/Previews/Embed%20Image%20Links/After.png?raw=true)\n\n\u003c/details\u003e\n\n### Google Active Cell\n\n- Search the contents of currently selected cell with Google / Google Images / Flickr\n\n- Created by Booksticle, unmodified in this repository (except adding PtrSafe to ShellExecute declaration for 64-bit operation)\n\n- RunProgram from [here](https://shortcut.booksticle.com/showlist2.asp?parent=77924) ([archive](https://web.archive.org/web/20250712142935/https://shortcut.booksticle.com/showlist2.asp?parent=77924))\n\n- Google from [here](https://shortcut.booksticle.com/showlist2.asp?parent=111219) ([archive](https://web.archive.org/web/20250712142956/https://shortcut.booksticle.com/showlist2.asp?parent=111219))\n\n- Demo [here](https://www.youtube.com/watch?v=pAbmUdZgIMc) ([archive](https://web.archive.org/web/20201224062607/https://www.youtube.com/watch?v=pAbmUdZgIMc))\n\n- Example included in `LFRD 2025 Bus Previews.xlsm`\n\n\u003cdetails\u003e\n  \u003csummary\u003e🛠 Setup Guide\u003c/summary\u003e\n\n1. Developer \u003e Visual Basic\n\n2. Modules \u003e Module1 (in tree on left side)\n\n3. Paste (Declarations).vba in Declarations section:\n\n![Declarations](https://github.com/sjain882/Excel-VBA-Macros/blob/main/.github/Guides/Google%20Active%20Cell/Declarations.png?raw=true)\n\n4. Tools \u003e Macros\n\n5. Under Macro Name type either `FlickrIt` / `GoogleIt` / `GoogleImagesIt` then click Create to create new macro section for the relevant function\n\n6. New section with Sub skeleton will be created. Replace entire contents of this section with the contents of the relevant .vba containing the function's code\n\n7. Save and close VBA Editor\n\n8. Developer \u003e Macros \u003e Select macro you want to assign keyboard shortcut to \u003e Options\n\n9. Type a single key into shortcut box, e.g, G for CTRL+G. For CTRL+SHIFT+G, delete contents of box and type Shift+G (NOT Ctrl+Shift+G). Nothing else will work.\n\n10. Click OK\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e💼 Archived macros\u003c/summary\u003e\nNone\n\u003c/details\u003e\n\n***\n\n# Other\n\n### How to print spreadsheet as single-page zoomable PDF?\n\n1. File \u003e Print \u003e Page Setup\n\n2. Scaling \u003e Fit To \u003e 1 pages wide by 1 tall\n\n3. OK\n\n4. Select Portrait/Landscape as appropriate\n\n5. Print\n\n### How to print spreadsheet with working Hyperlinks?\n\nNormal File \u003e Print will not work - you need to use Export.\n\n1. First, Print to PDF with above instructions to save print layout\n\n2. Then, File \u003e Export \u003e Create PDF/XPS document\n\n***\n\n# Bonus\n\nIf you were browsing a lot of Flickr images then opened their direct links to paste into a sheet (with Embed Image Links), but want to go back and get the original full webpage link so you can credit the author, use this bookmarklet ([source](https://www.flickr.com/groups/96035807@N00/discuss/72157721920375928/72157721920408447)):\n\n```javascript\njavascript:const%20fid%20%3D%20(%2F%5Ehttps%3F%3A%5C%2F%5C%2F(farm%7Clive)%5Cd*%5C.static%5C.%3Fflickr%5C.com%5C%2F%5Cd%2B%5C%2F(%3F%3CimageId%3E%5Cd%2B)_%5B0-9a-f%5D%2B%5B%5E.%5D*%5C.%2Fiu).exec(document.URL)%3F.groups.imageId;%0Aif%20(fid)%20{%0A%20%20%20%20window.location%20%3D%20%60https%3A%2F%2Fflickr.com%2Fphoto.gne%3Fid%3D%24{fid}%60;%0A}%20else%20{%0A%20%20%20%20alert(%22Sorry%2C%20this%20is%20not%20a%20Flickr%20static%20image.%22);%0A}\n```\n\n***\n\n# External\n\n*(Macros \u0026 resources)*\n\n[Booksticle](https://shortcut.booksticle.com) - Assorted macros, shortcuts, Excel guides","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjain882%2Fexcel-vba-macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjain882%2Fexcel-vba-macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjain882%2Fexcel-vba-macros/lists"}