wsheet

  1. O

    UDF Issue

    hi all, i am using a udf that uses vlookallsheets, the code below needs teaking, I would like to know how to add another sheet (Summary!) in this line, i dont know how its written [If wSheet.Name <> "master" Then], is it something like -- If wSheet.Name <> "master" and & or "summary"...
  2. ZoopZoop

    Question about populating cells with formulas in a dynamically updating index

    I'm using a VBA code (that I found and modified by lurking here, kudos!) to create a dynamic index that I then use 15 different Indirect formulas to populate cells with values that create a summary. Basically each cel from B2-P2 is populated with some variation of...
  3. B

    Protect/Unprotect all tabs with set password

    Good day all. I have a spreadsheet with 80 (and growing) tabs. When this file is distributed, I would like all tabs to be protected with a password. I have VBA which does this: Dim wSheet As Worksheet Dim Pwd As String Pwd = InputBox("Enter your password to...
  4. M

    Macro to protect all sheets that are not hidden

    Hello, I'm trying to create a macro to protect all sheets at the same time. Below is what I have been trying, but its not working. ANy ideas? Sub protectsheets() Dim wSheet As Worksheet For Each wSheet In ActiveWorkbook.Worksheets wSheet.Protect Password:="margin" Next wSheet End Sub Sub...
  5. F

    Index tab not updating

    Hi, I hope someone can help, I have two spreadsheets which have loads of tabs on them and I created an index tab to help manage them, however, new tabs I have created don't seem to want to show up on the index tab. This is the vba code used in each of them, which appears to have worked fine up...
  6. H

    input pword into textbox to unprotet sheet

    I have a button assigned to open up a UserForm with a text box. I sort of have it set up so that when you input the unprotect pword in to that text box, then it unprotects the sheet. However I have an issue that when the incorrect pword is entered it gives me a run time error. Can someone help...
  7. N

    Protect/Unprotect Excel VBA Error

    Can anyone tell me why this is not working correctly? I can protect all the sheets but when I go to unprotect the sheets I get the error message? Sub protectsheets() Dim wsheet As Worksheet Dim Pwd As String Pwd = InputBox("Password:", "Protect Sheets") For Each wsheet In...
  8. H

    Macro to ignore sheet "Sumkmary"

    I have the following codes which creates an index I would like "back to Index" hyperlink not to be inserted on sheet Summary" Your assistance is most appreciated Private Sub Worksheet_Activate() Dim wSheet As Worksheet Dim M As Long M = 1 With Me .Columns(1).ClearContents...
  9. SanjayGMusafir

    VBA to change zoom of all Worksheets in a workbook Excel 2019 for Mac

    Hi Experts, Here comes a new problem. With Excel 2019 for Mac, when you open a file, it doesn't display Customised Macro Buttons. The workaround is to change the zoom level and they all magically appear. So I wrote a code to change zoom level of all worksheets in one click. But it seems to...
  10. M

    Vba - protection & filtering

    Hello, I have the following code which i have to protect my workbook and allow filtering. Sub ProtectSheets() Dim wsheet As Worksheet For Each wsheet In ActiveWorkbook.Worksheets If wsheet.NAME <> "TB - EPM" And wsheet.NAME <> "ACT - GLORY" And wsheet.NAME <> "ACT - BARC" And wsheet.NAME <>...
  11. C

    Removing worksheet protection from multiple workbooks

    Hi Everyone, Im hoping someone may be able to help me out. I have a large selection of excel files within folders that I need to process. Some files have protected worksheets and some don't I have the password required but Im trying to find a way that I can get a macro to go through all the...
  12. L

    saving multiple worksheets all at once except for two

    in the workbook I created - there are several worksheets - I want to password protect/unprotect all sheets except for 2 named "dwg" and "usage" I used the following macro - it does it to all - how do I insert the exempted worksheet? Sub Sheets_Protect() Dim wSheet As Worksheet...
  13. F

    Worksheet List In Another Window

    Hello, I want to have a list of all the worksheets in my workbook listed on another sheet. Right now I have; Sub SheetNames() Dim wsheet As Worksheet Set wsheet = Worksheets("Lists") With ws Columns(1).Insert For i = 1 To Sheets.Count Cells(i, 1) = Sheets(i).Name Next i End...
  14. kelly mort

    Run-time error 1004: Select method of range class failed

    Sub clearsheets () Dim Wsheet As Worksheet For Each WSheet In Worksheets Select Case Wsheet.CodeName Case "Sheet1", "Sheet2","Sheet3" Case Else Wsheet.Range(Wsheet.Cells(7, 2), Wsheet.Cells (200, 15)).Select Selection.ClearContents End Select...
  15. H

    Create Index of Worksheets

    This code works but seems slow. Anyone got a cleaner way to do this? - Index Worksheet starts off blank. - When a new worksheet is added, the name of the new worksheet automatically appears on the Index worksheet in alphabetical order. - When a new worksheet is added, a link is automatically...
  16. L

    Convert Workbook To Values

    Hi there. I've been working on some code, that among other things, is to convert all content to values (i.e. formulas and references). This is designed to run against multiple files in a single folder, with some of the files rather complex. This is giving me some trouble, particularly with...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top