vba & conditional formatting & protected worksheet

  1. R

    VBA Help - Split Data Worksheet with helper sheet into separate workbooks, preserve all formatting and structure and PW protect sheet

    Hi All, I have a spreadsheet that I need to split out a each unit and then password protect it. my spreadsheet will contain formatting and protected areas. I need to Retain all functionality in the split out files as well as update a master cell with the budget for that unit. I have some...
  2. I

    Simplify VBA code

    I have been trying to find a way to simplify this VBA code as it takes a little while to run currently. I want it to automatically unhide row 7 on sheet 07 through sheet 32 when cell J4 on the active sheet is higher than 0 and if it is 0 or less then hide the row on those sheets. then repeat for...
  3. A

    Multiple Ranges in Color Scale UDF

    The below code works fine if the a single range is provided, example: =Macro1(A2:F2). But does not with multiple ranges, example: =Macro1(A2,C2, E2:G2) Is the a way around I could make it dynamic? Function Macro1(Rng As Range) If Application.WorksheetFunction.Sum(Rng) <> 0 Then...
  4. A

    Data type error for Color Scale UDF

    I have created a VBA UDF to add 3 Color Scale formatting to a given range. The below code seems to be working when the value of Rng is hardcoded as "G5:J5" (with double quotes). Instead, I want it to use just G5:J5 so that I could drag it down. Can anyone please help? Function Macro1(Rng As...
  5. K

    When the item-list is selected in the range in particular cell, the Shape button should be visible on the side.

    When the item-list is selected in the range in particular cell, the Shape button should be visible on the side. How it possible to make this hyperlinkbutton in table
  6. C

    Partially lock shapes in the same sheet

    Hello, the situation is that I have many shapes in 1 sheets 1. some shapes I want the user to be able to modify 2. some shapes I don't want the user to be able to do anything with it 3. I want the user to be able to insert new shapes as they wish Here is what I have tried so far Method 1: -...
  7. K

    Enter after pasting cell value - VBA - Excel to Word

    Hi, I'm wonder if there is any way to code that After copy a cell value, then paste to Word and then enter the line and paste the next one? (can it be a loop?) My code right now is this. The <A1> in Word is formatted in numbering so when it pastes the value picked up from Excel, it will...
  8. S

    Automatically change value in a cell while also allowing input

    Hello! I'm quite new to the more advanced tools in Ecxel and I have never used VBA before, but I have some limited experience with programming in general. The worksheet is a calculator to help my colleagues calculate the prices of contracts before sending a quote to a customer. What I'm trying...
  9. A

    Possibility of having an If condition result linked to a cell color VBA

    Hello, I was wondering if there is it possible to Link an IF condition with a cell color instead of a specific data using VBA. For example: A range of cells B4:B20 have data lets say numbers. some of those cells will change color to blue. for the sake of the example lets say B7 changed color...
  10. R

    VBA - Code to Make Workbook READ-ONLY vs Edit based on drop down selection

    Hello Again! I found an older thread with a similar question but I couldn't figure out how to apply it to my situation. On my [Sheet1] I have a drop down box setup that has 2 options (Inquiry/Update) what I would like to do is write a script that changes the workbook from read only to editable...
  11. K

    Putting conditional formatting on a page after it's created in vba

    Hi guys am looking to code in a condictional formatting to a newly created sheet via vba This intales highlighting the row orange when you click on a cell between a certain range(Any range will do ill edit it to what i need) i would just set it up when i use it my self manually but unfortantly...
  12. A

    Page break issues when exporting to pdf from userform (VBA)

    Current Issue: So far, however, I have (with assistance) created a user form in Excel that collects data and inputs it into a spreadsheet, which can then be exported to a PDF report using a set format/layout on another sheet of the workbook. The layout consists of a "Header" section and an...
  13. J

    Duplicate Cells

    When I run my macro based on conditional formatting, it just adds to the bottom when i need it to post in A8. (I highlighted the cells in yellow to show the duplication) C25
  14. M

    Moving Entire Row based on Cell marked "Completed"

    I am new to this and trying to get each row to automatically get copied to my second sheet "Completed", then deleted off my main sheet... So - when I select "completed" from the dropdown in Column "N", that entire corresponding row essentially moves over to the second sheet labeled "Completed"...
  15. D

    Protecting and Locking A Range on a Series of Worksheets

    I'm attempting to protect the entire worksheet except for a set range for a series of worksheets that are identical. The workbook is comprised of time surveys for a number of cost centers. Each time survey is identical. However, I do not want them overriding some items and I don't want them to...
  16. S

    for using excel vba

    i need programe i have thousand of folder in my office pc i want to this folder uplode in excel sheet in a minute using vba code and this sheet i can use at home
  17. J

    Use VBA to delete conditional formatting from a protected sheet

    I am attempting to use VBA to delete conditional formatting on a protected worksheet. When I run the simple macro below, I receive a 400 error. However, if I unprotect the worksheet, remove the lines of code for unprotect/protect, the macro works without error and removes all the conditional...

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