Google Sheets - Hide / Unhide Multiple Worksheets - Bulk Script

  Рет қаралды 27,924

Learn Google Sheets & Excel Spreadsheets

Learn Google Sheets & Excel Spreadsheets

Күн бұрын

Пікірлер: 57
@SaintHanappi
@SaintHanappi 3 жыл бұрын
Soooo nice. Another great content. After 6+ month watching you and getting thrilled by your app-script tutorials it's nice to see a progress. Nice to understand everything you teach us. Thank you, Sir
@markuswinter-cdps3008
@markuswinter-cdps3008 2 жыл бұрын
Thanks yet again for another great video. I accomplished the same thing, but in a slightly different way. Rather than hiding/showing multiple sheets at once, I tied the script to the individual checkboxes. So, when you check a box, it shows that sheet, and when you uncheck it, it hides it. Here's the script: function onEdit(a) { var range = a.range if (range.getA1Notation() == "B9") { var Sheet1 = a.source.getSheetByName("Sheet1"); if (range.isChecked()) { Sheet1.showSheet(); } else { Sheet1.hideSheet(); } } if (range.getA1Notation() == "B10") { var Sheet2 = a.source.getSheetByName("Sheet2"); if (range.isChecked()) { Sheet2.showSheet(); } else { Sheet2.hideSheet(); } } if (range.getA1Notation() == "B11") { var Sheet3 = a.source.getSheetByName("Sheet3"); if (range.isChecked()) { Sheet3.showSheet(); } else { Sheet3.hideSheet(); } } if (range.getA1Notation() == "B12") { var Sheet4 = a.source.getSheetByName("Sheet4"); if (range.isChecked()) { Sheet4.showSheet(); } else { Agencies.hideSheet(); } } }
@kevinspaeth5895
@kevinspaeth5895 2 жыл бұрын
This is so AWESOME!! I did not even know I needed this for my application that I am building!! Holy cow, you rock man!!
@IntrepidFox
@IntrepidFox 3 жыл бұрын
Awesome tool, very elegant code, every single time I learn something new from you. Many thanks! If I dare point out a minor bug: In the case you delete a sheet, it does not clear the empty row at the bottom when you get the list. So maybe (keep in mind I'm just an amateur :) before the line setting the values, do: wsManager.getRange(2,1,wsManager.getLastRow()-1,2).clearContent() Also just for looks, Col B conditional formatting =A1="" --> white text, white background
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Great point!
@bigbrother1211
@bigbrother1211 3 жыл бұрын
Thanks a a lot for your elegant code Managing sheets is definitely a common issue for many people ( I feel it)
@oOoScarecrow31oOo
@oOoScarecrow31oOo 3 жыл бұрын
Not sure I would need this script to hide or unhide sheets but some parts of the script can be really useful for another script of mine. 😏😉 Always learning something in this channel. Keep on the good work! 👍
@northstarplanner1
@northstarplanner1 Жыл бұрын
First off, this was AMAZING!!!! I Have been trying to find a video walking through how to do this for a long time before I found this video. This was EXACTLY what I was looking for. I Have a question and wondering if I could get your input. How do I change the code if instead of using checkboxes to indicate which ones I want to show or hide, I want to use an if-then formula. I followed your steps exactly and make it with the checkboxes. But when I switched the checkboxes for if/then formulas the returned the words "true" for the ones I want to show, and "false" for the ones to hide, all of the sheets get hidden that have that formula in the box regardless of it it turned out true or false. I have ZERO coding background. I am just a financial planner making a google sheets worksheet with a bunch of tools for clients, so any insights into how to do this would be amazing!!!
@syusyu5229
@syusyu5229 2 жыл бұрын
Nice! By any chance, do you know how to create script to hide/unhide column/row and bulk printing? And can I prevent people from unhide hidden sheets?
@mbellso
@mbellso 3 жыл бұрын
Very useful!!! Thanks!!! Now I need to learn how to run the script from another spreadsheet, if it is actually possible...
@carmencastro5512
@carmencastro5512 2 жыл бұрын
muchas gracias. es la continuación de delete sheets, God bless your job!
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
Thank You!
@x4ms
@x4ms Жыл бұрын
Always the best! Thank you!
@ExcelGoogleSheets
@ExcelGoogleSheets Жыл бұрын
Thank you!
@pvv_live2226
@pvv_live2226 3 жыл бұрын
A good way to catch up with the functionality of MS Excel.
@christianmartins358
@christianmartins358 2 жыл бұрын
I always wanted the Google Sheets look like Excel in this query. We can literally make Excel look like a website, and that's beautiful.
@fhozouri
@fhozouri 3 жыл бұрын
Thank you, it really helped me so much on my payroll worksheet
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Glad it helped!
@paulhaube
@paulhaube 3 жыл бұрын
How about an automatic un/hide where the master list tab of a sheet followed by many more & increasing tabs has a column titled "status" with a drop-down-list with the word "closed"? Would that un/hide a tab faster that scripting? Thank you PS.: II understand my question leads to the video instructions so I would assume.
@brunobergen4220
@brunobergen4220 3 жыл бұрын
Great ! thanks Is it possible from within Gsheet , to search the Corporate Gmail directory, sama way as I do when I compose an email from gmail ? search for people by just start typing their names.
@dylanmeyers4436
@dylanmeyers4436 3 жыл бұрын
You're the man! I was just thinking something like this would be nice to have.
@mr_shanes
@mr_shanes 3 жыл бұрын
great tutorial, thank you! one suggestion... to NOT show the "Sheet Manager" sheet in the list, so people do not have option to hide that particular sheet.
@AYADAL-KHADHER
@AYADAL-KHADHER Жыл бұрын
//console.log(sheet) return [sheet.getSheetName()] }) sheetNames.shift()
@DIN-Norm
@DIN-Norm 3 жыл бұрын
Very nice, i tried it. Its just a bit slow when you have more sheets
@stevenpineiro-cdot4671
@stevenpineiro-cdot4671 3 жыл бұрын
Love this! Thank you for the awesome videos you make!!!
@MarcCastellsBallesta
@MarcCastellsBallesta 3 жыл бұрын
Woah! The assign script to an image totally broke me!
@wongkinwah1052
@wongkinwah1052 3 жыл бұрын
I followed almost every Script tutorials, thank you very much, Sir. That's a huge improvement during these two months. I encountered the problem of lock apps script with password, if I share to others (also as a editor) with partially protection the sheets, others user easily to login my apps script. How to solve it? Thanks.
@TomWien
@TomWien 3 жыл бұрын
For the algorithm :))) thank you for your content
@parmindersingh8008
@parmindersingh8008 3 жыл бұрын
How can we delete or pervent people when work togather or when share to add sheets like this
@oluwayomidada3536
@oluwayomidada3536 2 жыл бұрын
Bravo 👏 👏 👏 👏 👏 👏 👏 👏
@possumking1887
@possumking1887 2 жыл бұрын
Is there a copy of the of the formula?
@delannaleonard1600
@delannaleonard1600 2 жыл бұрын
Can you do one showing how to hide/unhide columns in bulk
@MrTars483
@MrTars483 2 жыл бұрын
Hi, very nice video! Where can i find the code? Thank you
@chandrashekharprajapati9451
@chandrashekharprajapati9451 2 жыл бұрын
Hi I have a question - How to hide sheet for specific user after sharing google sheet with multiple user.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
You best bet is to protect that sheet and then hide. That way they would not be able to unhide.
@chandrashekharprajapati9451
@chandrashekharprajapati9451 2 жыл бұрын
@@ExcelGoogleSheets Thanks for responding will try .
@mohamed.montaser
@mohamed.montaser 3 жыл бұрын
can you make it run on edit, i mean it hides the sheet when you press the check box
@peterkalu5392
@peterkalu5392 3 жыл бұрын
You could probably do that in an onEdit() function. But that would mean the script would be checking the Sheet every time there's an edit to ensure it's the right tab and range. I'm not sure it would be a good use of script resources.
@adjavambomfim3559
@adjavambomfim3559 3 жыл бұрын
How to hide in "all page option" ?
@datahrd346
@datahrd346 3 жыл бұрын
Sir, i had already make it that app in menu, which create Delete sidebar App, and glad its normally function. My question is? how if that script G"oogle Sheets - Hide / Unhide Multiple Worksheets - Bulk Script" could apply in same thing like Metroui Sidebar App, and appear one button Hide to do same thing like Hide-Unhide did, i am did trying but yet failed..can you help me. thanks very much Hery in Indonesia
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Yes, what have you tried? Share your script.
@datahrd346
@datahrd346 3 жыл бұрын
@@ExcelGoogleSheets thanks vet much, for attention n reply, firstable about the script is : 1. Hide/Unhide Button Un/Hide -> why this button couldn't join in 1 row, and is palcing in up n bottom 2. Instruction for Hide (in html) WorksheetHideApp.hideSheets = function(){ WorksheetHideApp.wait.classList.remove("no-visible") const sheetNamesToHide = WorksheetHideApp.worksheetsTable.getSelectedItems().map(r => r[0]) const sheetNamesToHideAsString = JSON.stringify(sheetNamesToHide) google.script.run.withSuccessHandler(() => { WorksheetHideApp.loadWorksheetNames() }).hideWorksheets(sheetNamesToHideAsString) } // hideSheets document.getElementById("hideButton").addEventListener("click",WorksheetHideApp.openDialogActions) 3. Instruction for Hide (in gas) function hideWorksheets(sheetNamesToHideAsString){ const sheetNamesToHide = JSON.parse(sheetNamesToHideAsString) const ss = SpreadsheetApp.getActiveSpreadsheet() const sheets = ss.getSheets() const sheetsToHide = sheets.filter(sheet => sheetNamesToHide.includes(sheet.getSheetName())) sheetsToHide.forEach(sheet =>{ ss.hideSheet(sheet) }) Pardon me, if those script was just edited by copying from what you've did it in video. Hereby, i'm just try to adding some script to use it in Hide Worksheet, but in Metroui version in that Sidebar App.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
@@datahrd346 should be sheet.hideSheet() instead of ss.hideSheet(sheet)
@datahrd346
@datahrd346 3 жыл бұрын
@@ExcelGoogleSheets pardon me, was that script in 1, 2 ,3 was totally agree can use it in function of Metroui and put in the Delete Sidebar App? hope for some correction, if any wrong in of all script. cause it had been try , but it can't. thanks so much for reply. #mean; if "sheet.hideSheet()" repalce in what text ?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
replace ss.hideSheet(sheet) with sheet.hideSheet()
@chandrashekharprajapati9451
@chandrashekharprajapati9451 2 жыл бұрын
How to add Font in Google sheet like- Kurti Dev 10
@fabyoalexander
@fabyoalexander 3 жыл бұрын
fantastic, thanks
@remadas0
@remadas0 3 жыл бұрын
How to hide formula, app script when iam sharing sheet with others
@riehessel5409
@riehessel5409 Жыл бұрын
Why whoud you put i window right where you er trying to show something????
@teamdataperformicsde8045
@teamdataperformicsde8045 3 жыл бұрын
Great Script but it seems not to work in protected sheets, also with the rights for this user
@ledsonvanini7421
@ledsonvanini7421 3 жыл бұрын
Great
@jatinverma5608
@jatinverma5608 3 жыл бұрын
i am working on making ludo in gsheets... u wanna join?
@BlackHoleInstitute
@BlackHoleInstitute 2 жыл бұрын
I still do not understand why the hell until today there is no single option - hide range, sheet visualy from other users, but let me edit it. Just hide something other users do not even know exists. This is so stupid attitude. Standard functionality in other group work apps. Google shoudl be ashamed of it.
@NoviJimB
@NoviJimB 2 жыл бұрын
Google sheets is sadly lacking in a lot of areas, and can be incredibly slow as well. It's painfully obvious that they should have an option to unhide all hidden sheets, or at least have a dialog that comes up with a list of sheets where you can hide or unhide and select all you want included all at once, rather than doing them individually. I wouldn't use Sheets if I had an alternative (I have to use it because of the people I'm working for and their environment).
Google Sheets Form for Data Entry - Apps Script
59:47
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 359 М.
10 INCREDIBLE things Google Sheets can do Right Now!
13:27
Jeff Su
Рет қаралды 60 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Google Sheets - Add Timestamp When Cell Changes - Apps Script
16:39
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 341 М.
Combine Multiple Spreadsheets Into One in Google Sheets
18:08
Multilevel Dependent Dropdown in Google Sheets (With Google Apps Script)
21:26
Google Apps Script Hide Row
5:01
saperis
Рет қаралды 10 М.
10 HIDDEN SECRETS of Checkboxes in Google Sheets!
17:33
Hash Ali
Рет қаралды 25 М.
Categorize Google FORMS responses in different sheets in Google SHEETS
17:12
Excel VBA: Copy Data Between ANY Two Sheets
12:56
Excel Macro Mastery
Рет қаралды 123 М.
Move Rows of Data in Google Sheets - Apps Script Tutorial
13:14
Sheets Ninja
Рет қаралды 30 М.
JavaScript Filter Method Tutorial - Google Sheets Apps Scripts - Array Methods Part 7
27:19
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 72 М.
Google Sheets - Protect or Totally Hide Data Using IMPORTRANGE
7:27
Prolific Oaktree
Рет қаралды 32 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН