I have a button, and I need a Macro that will cause it to clear all unprotected cells. I think I can figure out how to get it to clear an individual cell, and I suppose I could enter every cell I want cleared individually...but that might take awhile.
Is there a way to set up a Macro that will delete the contents of every unprotected cell? I guess I haven't tried it yet - if I protect the cells, will it not delete those? Also, there is a small image - I don't want that deleted either.
I have a spreadsheet that has I have protected. On this sheet I have a button labeled Reset Form. When you click the button it it goes to each Unprotected Cell and deltes the contents. I created this by starting the macro and then tabbing to each and every cell and deleteing the contents I then ended the macro...
Is there a code that I can use for to clear all unprotected cells as opposed to creating the macro manually?
I have created an Excel template for others to use. They can enter data in certain unprotected cells and the data is linked to other places in the workbook. If they Cut and Paste something in the unprotected cells, the formulas get a REF#. There is no problem if they Copy and Paste. How can I prevent the REF# error without resorting to VBA?
I Need to protect some cells from being Changed or deleted, if i protect the whole sheet there are some cells that need to be changed using the formatting bar I.e borders, colours, font- colour, Merged cells.
the protection setting allows you to leave individual cells unprotected however you still cannot change the border for example.
Excel 2007 or 2003 Is there code to be able choose the formating of a cell when right clicked if the cell is Unprotected. But, the sheet is Protect and the Workbook is Protected. Without Unprotecting anything 1st.
The reason being is sometimes the user may need to change the type of font from Arial, or Gdt or Y14.5M.
I have created a form, with a textbox and a listbox, that loads when the workbook opens.
As the listbox is the 2nd field on the form, I'd like for the 1st item in the listbox to be highlighted once the user tabs to this field from the textbox field, in the event that the 1st item is actually the item the user wants to select. Currently, once you tab to the listbox field, the listbox item has a dotted line around it (forgive my not knowing the correct term to use for this; I would guess the item has focus at this point, it's just not selected), but the item is not actually highlighted. If I use the arrow keys to scroll up or down, then the first item can ultimately actually be highlighted.
I've search this message board, but was unable to come up with a solution. I assume I must not have been using the best search terms.
Currently (a part of) the form's code is:
Dim txtbox_EmplName As String Dim lbox_Div As String form_TERdata.txtbox_EmplName.SetFocus
I'm certain this must be simple, but I haven't been able to find a solution. What code would I need to add or change, and where?
When activating Autofilter in a wide table, the only way to determine which criteria field was selected is to try and identify which drop-down arrow has become blue. When working on a laptop, it is rather difficult to identify the difference between the black arrows and the blue ones. Is there a way to have a macro or event procedure that will cause the selected criteria field (or fields) change its background color (into yellow, for example)? This way, the yellow fields will "stand out"… No more searching...
I have unprotected cells in excel where I need to change the content (number) and cell color, but I don't want the cell borders to change. I'm a beginner with vba. I've tried protect sheet and workbook options, but looks like I need a vba code and don't know where to start.
How can I allow users to either select the SKU from the dropdown menu, or to type in the SKU # in the dropdown menu (C5 through F5) and have it populate the data fields for that SKU when they press the 'Enter' key?
Currently using Data Validation ='KVM Comparison Data'!$B$4:$OP$4 and cell logic to allow the information to be pulled from a hidden tab =INDEX('KVM Comparison Data'!$D$2:$OP$65,MATCH('KVM Product Comparison'!$B6,'KVM Comparison Data'!$A$2:$A$65,0),MATCH('KVM Product Comparison'!C$5,'KVM Comparison Data'!$D$4:$OP$4,0))
In short, I want to keep it the way I have it, but allow users to also have the option of typing in a SKU and pull the data up that way. I know this is possible, I just can't figure out how to do it, while keeping my current solution in place as well.
I have a text field at the bottom of a user form that remains hidden (i.e. visible = false) until the user clicks the "Ok" button. At that point, I want the text field to appear as the macro is running (it's a large macro, so the text field just says "processing, please wait...").
I have a Form that user fill in information on, once they click the OK button, excel is filled with the inserted text on the form in the correct cells.
My question is, how do I validate that they have actually entered data in some cells, which I want to make mandatory, and if they have not, prompt them (this could be a simple message box) to fill it in. Let them fill it, and once they click OK again, check again... until all the mandatory fields are filled, only then will the macro fill in the excel cells.
I have cobbled together (borrowing from examples I have found online because I don't know VBA) a form which inserts a date into a spreadsheet.
The trouble I have is that this date field is in USA date format and I need UK.
If I enter 03/01/2009 into the form, it appears in the spreadsheet as 01/03/2009. I have formatted these cells to display the month only and because of the way it was entered, the next column displays MAR instead of JAN.
I have tried many different ways to convert pdf to excel the best seems to be to highlight the data in adobe acrobat using the table/fomatted text tool >> right click >> save as ANSI.txt >> open with Excel. However, will only let me highlight a singel page in the document at a time My current document is 200 pages. Does anyone know how to beat this limitation or create a batch process?
btw, I have tried these utilities Ghostscript Able2Extract pdf2txt
They all failed at negative numbers formatted as such (200,000) The right parend is output to Col A The remainder is output to col B In addition, labels such as TJE 098789 Roth are output to three columns instead of 1.
I have some VBA code which opens a pdf file in Adobe reader based on a cells Hyperlink reference. I want to add some code to close all instances of adobe reader before I call the function to open the correct pdf.
I'm creating a report at work that I want to be able to print out a PDF copy of a worksheet (QPRForm_V6). I have Excel 2007, and have using the code below that works for me, but when people using Excel 2000 try to run this macro, it gives them a 400 error. Everyone has this program called PDFCreator (that is set up in the printer folder).
I have a workbook that consists of a number of worksheets, and a selection of these are updated regularly. Once updated the sheets are PDF'd using Acrobat 8 Standard to create a report, ready for mailing. To speed things I want to do this via a button click rather than going through the Acrobat interface and selecting the sheets to generate the document.
I have, as suggested here, recorded the action to create the report via Acrobat Distiller, including selecting the appropriate sheets. When I run the code, distiller treats the selected worksheets as separate files and subsequently tries to save them separately, ie 4 selected files - save prompt comes up 4 times.
a way to allow me to treat the selected sheets as one and therefore create one pdf consisting of all of the selected sheets.
my use of macros is usually limited to what I record.
Sub Print_PDF() ' ' Print_PDF Macro ' Macro recorded 06/06/2009 by MJ Cosker '' Sheets( Array("Sheet1", "Sheet2")).Select Sheets("Sheet1").Activate ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _ "Adobe PDF on Ne05:", Collate:=True Sheets("Sheet1").Select End Sub
I'm looking for a way to take information that is in a table in an Adobe file and importing it into a table format in Excel 07. I'm able to copy the table from Adobe and paste it into Excel as a picture, as I need the data to come into Excel in columns and rows. I have Adobe Acrobat 9 Pro version that I use to open the PDF file.
I get pdf files from my UPS carrier and need only a certain part from the text to import into my administration. Sure I can convert the pdf into text and import it into exel that way, save it into xls or csv and you are in but... is there a short cut? Since you can select and copy a part of a pdf file I wonder if it is may be possible to do so within a macro as well no? Is this a crazy question? because I could not find a similar question by searching the forums. May be I was searching for the wrong subject.
I am trying desperately to link activex checkboxes I have in an excel spreadsheet to a textbox. I need a textbox in cell K11 to appear whenever the checkbox in cell H11 is marked. Is this possible to create in excel using VBA?
I'm trying to create a piechart to display the variance from project deadlines.
Red > 10 days Yellow 5-10 days Green < 5 days
I would like to know if it's possible to create an interactive map with excel? I explain my case: I have a map of UK, that is divided into 8 regions. For each region there is a value of rainfall ratio. I would like that, when the user click on a region of the map, the corresponding value of rainfall ratio is going to a cell or wherever, such that I can use it for further calculations.