ws.name

  1. H

    Copy Values from multiple sheets to first sheet on new line

    I have the following VBA code which works except part bolded. Basically I want the "control" sheet to summarise the data from the other sheets - the item specified in cell B7, the name of the sheet, the values from N7:Q7. The cells N7:Q7 are formula but I want the values calculated to be pasted...
  2. K

    Getting Run-time Error on Macro when Workbook is Protected

    I am getting a run-time error '1004' Method 'Visible' of object'_Worksheet' failed when running a macro. I have to have the workbook protected to keep users from deleting sheets. The code works great when the workbook is unprotected. I had to change it workbook_deactivate instead of...
  3. J

    Run Time error 9 - Subscript out of range

    I am a novice VBA user. I have a menu page with different cells that all hyperlink to hidden sheets. All sheets unhide except a few that give me the "Run Time error 9 - Subscript out of range". Where is my error? Thank you for looking! Below is a pic of the debug (Error is in RED) line and...
  4. C

    rename i worksheet based on cell value

    I found this code in the forum and am trying to use it to rename a particular tab in by workbook. The problem is it is trying to rename every tab or worksheet I have and I only need it to change the name of 1 sheet. how can I modify the code to only name the one tab? Sub tabname() Dim ws As...
  5. VBA learner ITG

    VBA amend code to add text!

    Good afternoon, The below code only adds the worksheet name to column cell range D2-D5 regardless of what text is in cells D2-D5. Can I get your guidance to amend the code that if there is a word "Category" or "Store" in column D that it adds the worksheet Name and _with the cell value which...
  6. R

    Code Not working

    The dictionary items are not showing Sub Tracker()Dim a, w(), i As Long, ii As Long, n As Long, z As String, ws As Worksheet, dic As Object Sheets("Tracker").Range("a6: b100000 ").ClearContents Set dic = CreateObject("Scripting.Dictionary") dic.CompareMode = vbTextCompare For Each ws In...

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