Excel 2003. I have created an Excel purchase order form that has several drop-down lists that work just fine. However, I have yet to figure out how to change the font size and be able to use such things as BOLD, etc...even when I format the source data list. I can format everything else in the form...except how the drop-down list data is displayed.
I have tried to write code to format numbers to zero decimal places as well as to justify the format as the zeroes appears as 00000000 when imported.
I need the macro to do this on the first 7 sheets.
I also need ------- lines and ) to be cleared on the first 7 sheets.
I have attached sample data and my code below
Code: Sub Format_Data() Dim Cnt As Long, i As Long Cnt = Sheets.Count Application.DisplayAlerts = False For i = Cnt To 7 Range("F:H").Select With Sheets(i)
Is there a way to have a drop down or some sort of input cell that would change the look and format of the entire worksheet? Not sure how to pose the question?? For example.
What I'm working on is a departmental forecast sheet.
I want my department heads to be able to all look at the same excel file, then be able to input or select their department from a drop down. Once the department is selected that would call for excel to bring up the forecast for their specific department (**Each departments sheet is a little different).
I have a field with a "YES"/"NO" drop-down box. There are three fields below which have some default formatting (thick purple dot-dot-dash borders). When the drop-down field is "YES", those three fields should change borders to a single thin black bottom border line.
OK... so that's the setup. And I should note here that it does in fact format properly. However, the problem I'm having is that the screen does not update / repaint with the new formatting. The thick purple dot-dot-dash borders remain, for the most part.
If I page down, then page back up, the new formatting appears just fine. When I switch from "YES" to "NO", again, the formatting changes, but the screen does not update/repaint so the only way to see the new formatting is to again... page up and then page down again.
I'm wondering if anyone knows a way to force the screen to repaint/update so that my users will see the new formatting without having to page up/down.
How to format different numbers to the same format (as text). Mainly I need code that would format numbers like 25, 25.36 or 254.60 to numbers looking like this 000002500, 000002536, 000025460. They must be of nine digit length with the last two digits as decimals.
When working in Excel I format all numbers with the accounting format. I often use the single and double underlining feature on the Font tab of the Format Cells dialog box. Sometimes when I use the double underline it only puts (and prints) one underline. I've worked with the formatting many times with little success. The only way I can get the double underline to show up in this situation is to change the vertical cell alignment to be centered and then increase the cell height. This causes me other formatting heartaches. It's like the double underline is there it just will not show.
I'm trying to format numbers in a cell into words. For example, if I type 1 in a cell, I would like it to show the word Optimistic. If i type 2 in the cell I would like it to show the word "Realistic", 3 to show "Pessimistic".
For example: I have a spreadsheet with a column that has numbers such as 48600. When I go to format it into currency, etc. I select the decimal to move 2 places. Although it keeps giving me $48,600.00. I dont want that. I want it to put $486.00.
When I try to increase or decrease a decimal, it wont do anything until I have a decimal already in the number. So then I took 48600.00 and tried to increase/decrease the decimal, but it gives me either 48600.00000 or 48600. What I need is to make my number 48600 $486.00
In the publishing industry we have what we call ISBN numbers you will see that every book has a unique number. For thee company that I work for the number always starts as follows -
978-0-7153-
This is followed by five numbers sometimes 4 with a letter i.e.
978-0-7153-12345 978-0-7153-1234X
Is it possible to pre format the cells in a column so that the 978-0-7153- part of the code would be there hiding in the background and all you have to do is type the 12345 to get 978-0-7153-12345 displayed?
I have a number format that I need assistance with:
The number format I need is 1234-000 or 1234-001
The normal number format is 1234-000, very rarely does the 1234-001 be used. So I would like the number format to left fill the left section 1234 and right fill the right section 001.
I am a biologist that works with transgenic animals and I am using Excel to keep records of my mice. I would like to have a column that includes the age as calculated by the DOB of my animal on any given day. Furthermore I would like for it to be smart enough to tell me in weeks for younger mice and months for older mice. If i do this, obviously i will need a txt string that says "x mnths" or "Y wks" or whatever.
i have come up with an if/then string that works - but for some reason it will not allow me to format the number of decimal places if i include text. here is the function:
=IF(((TODAY()-B6)/7)>12,((TODAY()-B6)/30.417) &" mnths", ((TODAY()-B6)/7) &" wks") the B6 cell is the DOB of that particular animal.
so what this SHOULD shoot out is something to the effect of "4 mnths" or "3 wks" depending on the age of the animal. any animal older than 12 weeks will express in function of months and any younger will be in weeks. however what i end up seeing is something like this: 5.81911431107604 mnths I dont need any where near that many dec places...and obviously this doesn't fit in any reasonably sized cell......
The negative numbers in my currency format does not have any numbers with parenthesis or minus, is there any way that the default format can be changed other than always trying to use a custom format.
I need to list 4 digit numbers in each section followed by commas, but whatever I do it goes to 3digits (e.g. I need "1234,5678,9123" and as soon as I hit Enter it goes to "123,456,789,123"). It wont work to format as text because I have a whole bunch of 12 digit numbers to break up into 4.
I have a spreadsheet which has the date set out like this: 20070101
If there any way i can change this to either 2007/01/01 or 01/01/2007? I have tried using the date format (in the cells) but it just comes up with ######## i tried expanding the cell but no luck, this is very importand that i do this as its for a customer.
I'm trying to write a certain number, e.g. 300355, to appear as 03:03:55 and in the time format. I've already managed to make it appear with the punctuation between by formating the cell with 00:00:00. However I need to work with the cell in a time format because I'm using stats from a program that records time spent on/off a phone. To be exact I need to sum up 4 cells and divide each one with the total to get the % of time spent on the each category, (total talking, total ready, total not ready and total working).
If I use the format I've been using (00:00:00) the % gets slightly off the true value. E.g. if the numbers are the following:
Total talking: 03:36:53Total ready: 00:55:37Total not ready: 00:52:53Total working:02:40:37
I would get 45%, 11%, 11% and 33%, accordingly, by using the values in time format but 49%, 8%, 8% and 35% by using my format.
So the question is, is there a way to write the numbers as 33653, 5537, 5253, 24037, appear as 03:36:53, 00:55:37, etc. and be in time format?
Is there a way, WITHOUT VBA, to have a cell turn color if a user overlays a function with a value. Using conditional formatting or an easier way if possible, I would like to have any cells that the user overlays with a number to have a different background color.
I know I could use an event-driven macro but am trying to find a function that can check a cell to see if it contains a formula (or function) or a value.
I am inserting data into my spreadsheet using VBA code to read a file and insert the data into the relevant cells. My problem arises when I have a string such as 80830410205724044. The actual code that inserts the data is as shown (temp is dimmed as string)....
I have to change the layout of my numbers. At the moment the number have 3 decimal places but rounded to two decimal places and are separated with a dot (value in excel is 272.664 but shown just 272.66). After the macro or excel formula the output should be 000000000027266. So the last decimal places should be deleted (but the amount has still to be rounded!!!), the amount should be without a dot and the number has to be always 15 characters long (like in the example the above just with ceros before the number) I tried it in Format Cells but I couldn’t find anything. If I use the find and replace function to delete the dot, the third decimal place will be shown. Does anyone know if I can format it in excel or using a VBA code to change the number?
I am trying to return a number with a specific format. I need Excel to look in a particular column and when it finds the entry in the correct format to return it in a new column. I want it to repeatedly return the number to the new column until it finds another number of the same format in the original column.
I have a textbox in an excel userform and want the display to be formatted. When "9.1" is entered "9.100" shows either before or after going to the next textbox on userform. The code below is not working.
Private Sub UserForm_Initialize() txtWaste = Format(Me.txtWaste, "00.000") End Sub