Conditional Formatting for a certain month
Having a bit of an issue at the moment, ive got the Cell for instance
Basically Im after some conditional formatting to say if the month is
January, then make the cell blue.
Which will then lead to me making the other cells different colours
depending on their month, but again, it has to be in this format
Thanks for any help, muchly apreciated
Assuming a properly formatted date, formula is
"Advo" <email@example.com> wrote in message
news:1158151582....Rich Text control formatted as bold??
I have a control field on my form that is setup as textformat = rich text. In
the memo field on the form I need specific parts of the text to show up as
Upon form load I am populating the field with string data such as:
Me.MyTextBox = "This is a test string generation."
I need to set bold only one or two words of this string. The way I understood
it was that if I was using Rich Text format it would convert the formatting
to HTML style. But I don't see and havent found examples HTML formatting like
[b] [/b] working in VBA.
What is the correct way I can do t...Excel VB-Copy formula down until adjacent cell (left) is blank?
Here is exactly what I am trying to do through VB in Excel:
Weekly data pull fills colums A:G. Row count is always different. I am
modifying the data pull through VB, and I have a VLOOKUP formula in cell H2.
What I want VB to do is copy that formula down column H to the last row (with
data) each week. I guess I want it to be dynamic so that as rows
decrease/increase the formula is only copied down to the final row/record.
I know someone out of this smart group will know how to do this!
Thanks in advance!
in a macro
dim lngLastrow as long
dim rngTarget...Writing text to a CMDIFrameWnd
I'm trying to display some information about my main window in the control bar, specifically the magnification and the x & y coordinates of the mouse. After some work I got the Combo Box that displays the magnification working but I'm stumped on the coordinates.
First thing is the VC++ class wizard doesn't seem to generate a DoDataExchange function for CMDIFrameWnds so I had to write it myself, but once I did, the ComboBox was happy.
I've defined the mouse coordinates as static text, IDC_XVAL and ICD_YVAL, in the Dialog bar, though they don't show up as the ...select case to replace text with different text
I'm trying to use a Select Case in a Private Sub Worksheet_Change event to
do the following:
if I type w in a cell in col B, I want to replace it with WIDGETS
if I type g in a cell in col B, I want to replace it with GIDGETS
seems like it should be simple but I can't come up with the code.
On Sun, 10 Jan 2010 10:28:54 -0600, "John" <firstname.lastname@example.org> wrote:
>I'm trying to use a Select Case in a Private Sub Worksheet_Change event to
>do the following:
>if I type w in a cell in col B, I want to replace it with WIDGETS
>if ...Q: Referencing named cells in external worksheet ?
Using Excel 2002.
I have a workbook with 12 worksheets (one for every month of the
year), wherein a lot of the information is looked-up (using VLOOKUP)
in simples arrays.
I saw no point in implementing the arrays as a 13th worksheet, because
I will have a yearly version of my monthly worksheets in one workbook
(so one for 2003, 2004, etc). If I change the array(s), I want them to
be reflected in all referencing cells.
If my workbook containing my arrays (called "Global") is loaded, I
have no problem and the references to it read as:
(blabla) 'Global.xls'!Roster ...Visible cell characters
Can I increase the # of characters that are visible in a cell?
Excel Help on "limits" or "specifications" reveals that Excel will allow
32,767 characters to be entered in a cell.
However, it goes on to state that "only 1024 characters will be visible or can
To work around this limitation, stick a few ALT + ENTERs in at appropriate
The ALT + ENTER forces a line-feed and expands the 1024 limit.
How far is not really known. Just experiment.
.........From Dave Peterson..........
I put this formula in A1:
="xxx"& REPT(REPT(&...Cell Reference Problem with Network
Let's say I have a spreadsheet with two worksheets = SheetA and SheetB.
SheetA might reference a cell in SheetB with a formula like =SheetB!A1
But when I move this to the network the reference changes to include the
network drive and file name like:
the file may move from my laptop to the network several times and this
becomes completely confusion as the reference looks, not within the same
spreadsheet which is what I want it to to, but for another file out on the
How do I explicitly reference a cell within a difference worksheet but
alwa...How to generate a truly empty cell
"" generates a zero-length string, not a truly empty cell. This is
causing problems elsewhere. I'd like to find an output for an IF
statement that will give me a truly empty cell. The current formula
Any ideas? If it involves a macro (as I think it might, having read
other posts), please explain how to implement it.
<This is causing problems elsewhere>
It shouldn't. Don't use ISBLANK(A1), use A1=""
Microsoft MVP - Excel
"paulkaye" <paulmjkaye@gm...Splitting cells
in cell A1 i have the numbers 123456789. i want cell B1 to have numbers
1234567 and cell C1 to have just 89. what is the formula? i have tried text
If this is for extracting the first 7 characters use LEFT()
Jacob (MVP - Excel)
> in cell A1 i have the numbers 123456789. i want cell B1 to have numbers
> 1234567 and cell C1 to have just 89. what is the formula? i have tried text
> to columns
Hello Jacob - i did not explain this very well.The digits in cell A1 is
variable length. In cell C1 i n...What is the basic format of a Access VBA module
I am almost completely new to Access VBA so pardon me if this question
is asked before.
Anyway, I came across somewhere that I have read before that before I
exit an Access VBA module, I am supposed to clear the database or do
something to free the database is it? May I know how it is done and
why should I be doing that?
<email@example.com> wrote in message
> I am almost completely new to Access VBA so pardon me if this question
> is asked before.
> Anyway, I came across somewhere...Print or Print Preview not showing text
Print or Print Preview not showing text
just released SP2 for office
Now when we try to use print or print preview only see some of the text
headers. None of the text is showing or the background or images, using
built in templates.
After testing, I found I have to set the color/greyscale - to colour to
actually use the print preview. But it previews in grey scale, can't even
see the preview in color. Unless I also go into printer settings and change
that to color then get colour in preview.
If I set it to grey scale and my printer is a ...sum and times within text boxes
I want to multiply text boxs ie 4(1box)x $1.00(2box)=Total $4.00 (3box).
I also want sum total (5 text boxes) for grand total.
Is this feasible on form?? Thanks
On Mon, 14 Jan 2008 18:58:01 -0800, He cries for help
Have you tried an expression like:
=[1box] * [2box]
(assuming your control names are 1box and 2box. This expression would
go in 3box' Control Source property.
>I want to multiply text boxs ie 4(1box)x $1.00(2box)=Total $4.00 (3box).
>I also want sum total (5 text boxes) for grand total.
>Is this ...Getting date stored as text into real date?
A database query program outputs everything as a text string. One of
the fields is a date, formatted as yyyymmdd. Is there a worksheet
function that will change this to an Excel-recognized date? Or a
macro? The error checking doesn't flag this.
With your text date in A1, try this in B1:
Hope this helps.
On Dec 17, 1:12 pm, Ed from AZ <prof_ofw...@yahoo.com> wrote:
> A database query program outputs everything as a text string. One of
> the fields is a date, formatted as yyyymmdd. Is there a worksheet
> function t...No "Chart Option" feature in the Formatting Palette or when double click on Chart
Operating System: Mac OS X 10.6 (Snow Leopard)
I have read a discussion board concerning this issue but it was from 2008 and no solution was offered yet. The problem is as follows: one creates a graph but cannot add a title or format the axis etc. <br><br>When I open a new spreadsheet and enter the data, I can create the graph. However, I cannot select the "Chart Option" to change any specific features. On the formatting palette I only get the "Page Setup" options but nothing relating to the chart and when I double click on the graph t...making a sum outcome negative based on adjacent cell value
I have 3 columns of single figures. At present i'm using the sumproduc
fuction to multiply and total the figures in column A that fall betwee
4 and 9 with the adjacent figure in column B...
I'd like to add column C to the formula, so that if it contained
value of -1, 1 or 2, the sum of the adjacent figures in columns A and
appears as a negative number.
A3= 7, B3= 2, C3= 1 Outcome= -14
A4= 9, B4= 1, C4= 5 Outcome= 9
A5= 3, B5= 2, C5= 2 No sum because figure in column A ...Clear Format problem
I am trying to write a macro to clear ALL format in a range of cell. However,
I run into a problem.
I am using the Selection.ClearFormats command and it works in most cases,
but fails when multiple format are applied to the cell.
For example if a cell only contains "Hello wonderful world" all in bold than
ClearFormats will remove the bold formatting. But if the cell contains
"Hello wonderful world" where only "wonderful" is in bold, than
ClearFormats does not work and the word "wonderful" remains in bold.
Does anyone know how to clea...Formatting doesn't follow data sort
I was just recently updated to 2003 MS Office Pro. I can't remember
what I use to have, but I used to be able to Data Sort info and the
borders around cells would follow the appropriate text. It doesn't do
that anymore, and I can't find out how to fix it in the online help,
and my IT guy doesn't know off the top of his head. Can anyone help or
have I wasted a full day and a half putting borders around information
for no reason?
kanimalhouse's Profile: http://www.excelforum.com/me...Merged Cells
I have imported data into Excel. The left-hand column has merged cells
containing a reference number. The remaining columns contain varying records
associated with the reference number, a one to many ratio. I need to display
the worksheet so that the appropriate reference number is displayed in the
left-hand column for each of the records in the worksheet. There are hundreds
of reference numbers. Is there an automated way to do this besides unmerging
each section and copying the reference number into the now unmerged cells?
...HOW to COUNT THE FREQUENCY of specific CHARACTER WITHIN a CELL?
How can a frequency of a specific character be counted with in a cell. Ex -"
#4 Bluebirds, #6 Aquatic" is in cell B2 - how do I count the number of "#"
that appear in cell B2?
>How can a frequency of a specific character be counted
with in a cell. Ex -"
>#4 Bluebirds, #6 Aquatic" is in cell B2 - how do I count
the number of "#"
>that appear in cell B2?
...How to Wrap Text
I have a 267 characters texts field. MS Excel 2007 will not show all the
texts. It showed a bunch of ## symbols in the cell. I have tried several
tutorials on how to wrap texts but it didn't work.
I have tried these:
And it didn't work. The cell still shows the ## symbols. Any help is
Format the cel...CHANGING LEGEND TEXT
I wish to change the text in the legend box from say- (Series 1) to (MPG) or
anything that has a relevance to the graph. This was done easily in Works
Spreadsheet and previous versions of Excel.
Using 2007 Student & Home version.
Select the chart and use the ribbon
Chart Tools > Design > Data > Select Data
On the dialog select the appropriate series and Edit.
Andy Pope, Microsoft MVP - Excel
"mareng" <firstname.lastname@example.org> wrote in message
&...Help with formula containing text
I need some help on the following.
I have a column of text, linked to other worksheets, that is
continuously changing. I need to be alert if the same piece of text
appears in the column more than twice, e.g.
mlhynes's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=12959
View this thread: http://www.excelforum.com/showthread.php?threadid=401787
Visit Chip Pearson's site for much help on duplicates.
Fin...Cutom Time Format
I want to format a cell with a custom time format that will allow my users to
type in the time without the colons. [1014 = 10:14]. I've tried several
different ways of setting up a custom format to do this, but nothing works.
Anybody have any ideas?
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H1:H10"
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
.Value = TimeSerial(Int(.Value / 100), _
...How do I hide text beyond the last column in Excel?
In the last column of spreadsheet, if the text goes beyond the column
boundary, how is the text truncated in the next cell. I know you can enter
blanks in the next column, and that will achieve the desired effect, but
that's not an optimal solution for us.
Could you just hide all of the columns to the right of those cells?
Does that help?
> In the last column of spreadsheet, if the text goes beyond the column
> boundary, how is the text truncated in the next cell. I know you can enter
> blanks in the next colum...