 |
 |
Index ‹ Excel ‹ Excel Programming
|
- Previous
- 1
- Excel Programming >> Help with Check Box and VBAHi,
I am new to excel and I am not sure if what I want is doable or not,
would really appreciate your help;
I want to create a two columns sheet in the first column I want a chec
box in the next column a date field. When the user checks the check bo
the current date and time would be put in the date column this way
can tell when that task was done. If the check mark is unchecked th
second cell needs to be cleared out if a date was there already.
If you can help me with both how to create the check box and how t
attach the code to it to do the above it will be great.
Thanks
--
Message posted from http://www.ExcelForum.com
- 2
- Excel Programming >> Using sheet names in menus etcI have a multi-sheet workbook in which some of the sheet names may be changed
by the user from time to time. I would like to be able to have these
worksheet name changes reflected automatically in the Chart Titles and in the
'Name' property of Custom menu items.
Is there any way this can be done please?
- 3
- Excel >> CSV Dates Not SortingThe CSV column that is in issue is filled with dates and nulls. It is an
exported list from a software program we use.
When you open the CSV file with Excel and it automatically converts, it sets
the date fields type as General. Even after you change the field to a date
from General, it still does not reconginize it as a date field. It gets
!value errors when using =Year() and it does not sort by date it sorts
alphanumerically.
Current Workaround:
If you change the filename extension to XLS so it doesn't auto convert the
CSV, you have the option to do the "text to columns" button. With this, you
can specify each column and mark the date columns as dates. When the
conversion completes you can use Year() and sort by date properly.
Is there any easier way to fix this problem so I don't have to teach people
how to use "text to columns"? Ideally, I want them to be able to just click
on the CSV file and not have them do anything technical.
Thanks,
- 4
- Excel Programming >> Conditional Information on PrintingI am new to VBA and was wondering if there is a way to selectively prin
information depending on what else is on the page. I have created a
excel spreadsheet which draws information from another application
formatting column headings with sample numbers and row headings wit
analysis titles. The results data prints in appropriate cell
depending on sample number and analysis. Sample comments print at th
bottom of the page. If sample number 1,2 4 and 6 print on the firs
page then I only want to print comments for these four sample number
on page one. If samples 7,10,12 and 14 print on page two then I onl
want to print comments for these samples on page two. Is there an
way to program cells in the BeforePrint depending on what appears o
the page being printed
--
Message posted from http://www.ExcelForum.com
- 5
- Excel Misc >> Rounding numbers so that they are divisable by 31 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225
I want C3 to read £15789.00 as it is the nearest number to £15788.4225 that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3
--
Thank you for reading my post. Hopefully you can answer my querie
- 6
- Excel Misc >> ACTIVATING FORMULA BAR SHORTCUTI have alot of data to modify in a worksheet. When I
finish one cell I hit enter to drop down to the next cell.
To edit the next cell I must use the mouse to go to the
formula bar to get in edit mode. Is there a way to do
this without touching the mouse?
- 7
- Excel Misc >> Changing upper case characters to upper/lowerI have a file of names and addresses that were entered in all upper case. Is
> there a fast way to change this file into upper and lower case? Thanks for
> any help you can give me. I have read some of the former answers regarding this and they refer to use of macro's....I a novice user and need more guidance
- 8
- 9
- Excel Programming >> I am seek for powerful program for SEO!!!Give me link to SEO software (promotion, advertisement, etc.). I'
need it to promote my new e-shop.
Thanks
-----------------------------------------------------------------------
AbraahamLcn's profile: http://www.exceljockeys.com/forums/profile.php?mode=viewprofile&u=1
View this thread: http://www.exceljockeys.com/forums/viewtopic.php?t=32579
- 10
- Excel Programming >> RPC Server UnavailableI have made a macro in VBe (Excel) to extract data from MSProject to
Excel
This runs the first time without any problems.
But if I want to run it again, it does not work.
I will get an error code with "RPC server unavailable".
After operating the reset button (in VBE) I can run the macro again.
I have tried the Reset command but this did not work.
Can anybody please advice me what I can do to overcome this problem.
Marcus
- 11
- worksheet functions >> combined HLOOKUP (urgent for a friend)Hi!
given the table
2007 2008 2008 2009 2012
10% 20% 40% 35% 10%
I want to calculate the sum of the values in row 2 for a certain year, e.g.
2008. How to do if a certain value is shown more than once?
e.g.
if given 2008,
result = 60%
HLOOKUP returns only one value (the same applies to the MATCH function)
any solution???
thanks!
tom
- 12
- 13
- Excel Programming >> Help: weild checkbox problemHello,
I have a sub which draws checkbox dynamicly. Most of the time it worked
fine. However, from time to time, the checkbox object name will not be
changed as instructed in the code. But if I run the sub again, the
problem will go away. Any ideas what is wrong?
Thank you very much.
------------------------------------------------------------
Sub drawCheckBox(nYears As Integer)
'This sub is used to dynamically draw checkBox in the DashBoard sheet
'
'
Dim i As Integer
Dim j As Integer
Dim leftCB As Integer
Dim topCB As Integer
Dim widthCB As Integer
Dim heightCB As Integer
Dim checkBoxName As String
Dim obj As OLEObject
Dim tempCB As OLEObject
For Each obj In Worksheets("DashBoard").OLEObjects
If obj.Name Like "CheckBox*" Then
'obj.Object.Value = False
obj.Object.Value = True ' this step is to unhide any hidden column
to avoid error
obj.Delete
End If
Next obj
widthCB = 67.5
heightCB = 15.75
topCB = 0
For i = 0 To nYears
If i < 6 Then leftCB = 500
If i >= 6 And i < 12 Then leftCB = 500 + widthCB
If i >= 12 And i < 18 Then leftCB = 500 + 2 * widthCB
checkBoxName = "CheckBox" & Year(Now()) - i
j = i Mod 6
'topCB = 329.5 + j * heightCB
topCB = 325.5 + j * heightCB
Set tempCB =
Worksheets("DashBoard").OLEObjects.Add(ClassType:="Forms.CheckBox.1",
Link:=False, _
DisplayAsIcon:=False, Left:=leftCB, Top:=topCB,
Width:=widthCB, Height:= _
heightCB)
tempCB.Name = checkBoxName
'Worksheets("DashBoard").OLEObjects(checkBoxName).Object.Value =
False
Worksheets("DashBoard").OLEObjects(checkBoxName).Object.Value =
True
Worksheets("DashBoard").OLEObjects(checkBoxName).Object.Caption =
"Year " & Year(Now()) - i
Worksheets("DashBoard").OLEObjects(checkBoxName).Object.BackColor =
&HC0FFC0
Next i
End Sub
--
huangx06
------------------------------------------------------------------------
huangx06's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=25014
View this thread: http://www.excelforum.com/showthread.php?threadid=385420
- 14
- Excel Programming >> Retrieven data from closed workbooks - Ron de BruinI am using Ron's code to retrieve data from closed workbooks.
The code works wonderful but I need to transpose the output on the
destination book because I am copying a complete column from each workbook
and I want to have the name of the book as the title.
Instead of
e.g. Range1 Book1
Range2 Book2
Range3 Book3
I need it:
Book1................ Book2 ................. Book3
Range1(ColumnC) Range2(ColumnC) Range3(ColumnC) ETC.
Thanks in advance for the help!
- 15
- Excel Programming >> Textbox formattingHey guys,
I still cannot get a $ sign to come up before everything I type in a
textbox.
I want to be able to type in lets say TextBox1 and when I do, the $ sign
pops up in front of the number. I need the dollar sign to always be there
no matter how many times I re-enter numbers and I need it to format the cell
as $0.00
|
| Author |
Message |
AidanS

|
Posted: Thu Oct 23 18:14:52 CDT 2003 |
Top |
Excel Programming >> enable spell check
I created a form using excel and protected it so user's
can only input data were needed, but because i protected
the sheet, spell check doesnt work.
how can i enable spell check on a protected excel sheet?
Excel185
|
| |
|
| |
 |
Henry

|
Posted: Thu Oct 23 18:14:52 CDT 2003 |
Top |
Excel Programming >> enable spell check
Nydia,
What you need is a Userform.
You can do any sort of input validation there and you can prevent the user
changing any other cells.
HTH
Henry
"Nydia" <EMail@HideDomain.com> wrote in message
news:0a0f01c3999a$385df1c0$EMail@HideDomain.com...
> I created a form using excel and protected it so user's
> can only input data were needed, but because i protected
> the sheet, spell check doesnt work.
>
> how can i enable spell check on a protected excel sheet?
|
| |
|
| |
 |
Nydia

|
Posted: Fri Oct 24 07:20:37 CDT 2003 |
Top |
Excel Programming >> enable spell check
How do I create a userform, is that in excel?
>-----Original Message-----
>Nydia,
>
>What you need is a Userform.
>You can do any sort of input validation there and you can
prevent the user
>changing any other cells.
>
>HTH
>Henry
>
>
>"Nydia" <EMail@HideDomain.com> wrote in
message
>news:0a0f01c3999a$385df1c0$EMail@HideDomain.com...
>> I created a form using excel and protected it so user's
>> can only input data were needed, but because i protected
>> the sheet, spell check doesnt work.
>>
>> how can i enable spell check on a protected excel sheet?
>
>
>.
>
|
| |
|
| |
 |
pfsardella

|
Posted: Fri Oct 24 09:45:19 CDT 2003 |
Top |
Excel Programming >> enable spell check
There was a discussion recently on this topic. This thread provides
some solutions.
http://www.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8&safe=off&th=8a1f8ea53cd86709&rnum=1
HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------
>I created a form using excel and protected it so user's
>can only input data were needed, but because i protected
>the sheet, spell check doesnt work.
>
>how can i enable spell check on a protected excel sheet?
|
| |
|
| |
 |
Henry

|
Posted: Fri Oct 24 17:55:15 CDT 2003 |
Top |
Excel Programming >> enable spell check
Nydia,
From Excel, go Tools>Macro>Visual Basic Editor or press ALT + F11.
In the VBE go Insert>userform
From the toolbox, you can add controls (Labels, TextBoxes, ComboBoxes,
Command Buttons, etc.)
You can change the properties (size, colour, font, etc.) of the Userform and
controls
Double click any of the controls or on the form to add code to the controls
or form.
Go Insert>Module
In the code pane that appears, copy and paste the following
Public Sub Auto_Open()
Userform1.Show
End Sub
Save and exit.
Restart your workbook and the form should appear.
If it doesn't, go Tools> Macro>Security and check the medium box.
Save and exit and try again. Be sure to click on Enable Macros.
HTH
Henry
"Nydia" <EMail@HideDomain.com> wrote in message
news:0a4301c39a29$3b70ca10$EMail@HideDomain.com...
> How do I create a userform, is that in excel?
> >-----Original Message-----
> >Nydia,
> >
> >What you need is a Userform.
> >You can do any sort of input validation there and you can
> prevent the user
> >changing any other cells.
> >
> >HTH
> >Henry
> >
> >
> >"Nydia" <EMail@HideDomain.com> wrote in
> message
> >news:0a0f01c3999a$385df1c0$EMail@HideDomain.com...
> >> I created a form using excel and protected it so user's
> >> can only input data were needed, but because i protected
> >> the sheet, spell check doesnt work.
> >>
> >> how can i enable spell check on a protected excel sheet?
> >
> >
> >.
> >
|
| |
|
| |
 |
| |
 |
Index ‹ Excel ‹ Excel Programming |
- Next
- 1
- worksheet functions >> Counting Dates - Not TextHi,
I'm trying to count the number of "date" occurrences on a particular month.
However in the same column, aside from dates, there are TEXT entries and
blank cells.
When I use the formula below it gives me a #VALUE!
Please edit the formula below so I can count the number of date occurences.
=SUMPRODUCT(--(MONTH('Date'!J2:J1116)=1))
Thank you.
- 2
- worksheet functions >> with weekly score sheet how do I column a weekly progressive aver.I am doing a Darts score sheet in excel 2003. I have "game scores", "game
shots", "game average", "games played", "(sum)total scores", "(sum)total
shots", "(sum)total average", improvement increase\decrease percentage, and I
have even done a "bar chart". What I can't work out is how to formulate a
column for "progressing average".
The only way I can get "progressing average" at the moment is by formulating
ONE cell as "(sum)total score"/"(sum)total shots" then entering the result
manualy into the corresponding cell so that the players can see how they are
averaging (up or down).
Any solutions please? don't make it too hard and complicated, I'm only "self
taught"
over about 5yrs and I'm still finding out lots of things.
- 3
- Excel Programming >> I want a non-blank cell to return 25% in an adjacent cell.Spreadsheet keeps track of steps to be completed in a phase of a project. As
each step is complete I want the system to return the % that step worth (1
out of 4 = 25%). I will total each % of each step complete to give me a
total of the phase completed. How do I create a formula for each step of the
phase that will return the %? I thought this should be as simple as saying:
IF C5 is not blank, return 25% (in cell D5). Please help.
Thank-you.
- 4
- worksheet functions >> Linear regression errorsHi,
I have a set of data. When I graph the data on a scatter
plot and add a linear trendline, I also get an equation of
the line along with R2. However, when I use the worksheet
functions CORREL SLOPE and INTERCEPT I get different
values than the ones on the graph. Why? Please post back
Thanks,
Mike S.
- 5
- Excel Misc >> How do I add a theme in Excel?I am doing a project for school and they want me to convert a file to HTML
and then add a theme, but I can't find how to add one. Do I need to add the
theme before converting it to HTML, or is it something totally different?
- 6
- worksheet functions >> Help - my toolbars have disappearedI am looking for some help again. In excel, I opened a file which once
closed seems to have distorted the toolbars on excel. When I look in
tools customise, "standard" and "formatting" seem to have disappeared.
Does anyone know how I can get them back ? (If I try to create new
ones, it says that they already exist, even though I cannot find
them).
Thanks for your help.
------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/
- 7
- Excel Programming >> How can I pass an array as TextToDisplay to a hyperlink?I have a procedure that searches through every sheet (108) in a
workbook for matching data then puts a hyperlink to those data onto a
"Hyperlog" worksheet.
here's part of the code
Option Explicit
Option Base 1
Dim hlText(3) as String
Dim rte as string
Dim num as string
Dim street as string
Dim r as Integer
Dim foundNum as Range
.
.
.
r = 3
hlTarget:=foundNum 'result of Find"
a do loop here as long as matches are being found
hlText(1) = rte: hlText(2) = num: hlText(3) = street
Sheets("HyperLog").Hyperlinks.Add Anchor:=Cells(r, 1), _
Address:="", SubAddress:=rte & "!" & hlTarget, TextToDisplay:=hlText()
If I use hlText() or hlText, I get invalid argument error.
If I use hlText(3) only the 3rd element is passed
hlText(1) & hlText(2) & hlText(3) works except when executing the
hyperlink
Private Sub Workbook_SheetFollowHyperlink(ByVal Sh As Object, ByVal
Target As Hyperlink)
CenterOnCell Range Target.SubAddress, Target.TextToDisplay
End Sub
fails at .TextToDisplay
What do I do now coach?
Jay
- 8
- worksheet functions >> Table array in VLOOKUP (EXcel 2003)Hi
I use the VLOOKUP formula: =VLOOKUP(C21;PALIER;2) in which PALIER is a table
array and it works. I want now to have the "PALIER" changed by getting it
from another cell: =VLOOKUP(C21;C22;2) => i wrote "PALIER" in cell C22....
and that does not work anymore.
Is it a format issue , a table array issue or a Vlookup issue ?
Thanks.
jerome
- 9
- 10
- Excel Programming >> How can I check if a pop-up menu exists...Hi All,
Help with another (probably easy for you all) question. I use the code
below to add a pop-up menu that runs a macro.
On Error Resume Next
With Application
.CommandBars("Cell").Controls("GICAP Formatter").Delete
Set cBut = .CommandBars("Cell").Controls.Add(Temporary:=False)
End With
With cBut
.Caption = "GICAP Formatter"
.Style = msoButtonCaption
.OnAction = "FormatIssuesWorkSheet"
End With
What I need to know is how to check if the pop-up menu exists the next
time the workbook is opened? The "on error" process doesn't work for me
in this case because I need this check in the middle of a subroutine.
However, I continue in the subroutine whether it exists or not.
Can someone help?
Thanks,
Chris
- 11
- Excel Programming >> Organizing functionsGood afternoon everyone,
I've got more of a style question than technical one this time around. I'm
currently assembling all my custom functions and subs into one project. I
have been collecting some over the last couple of projects I've done, so I
thought it might be a good idea to have the ones I use very often together.
I am currently on 50-60 of them. The thing is that I've read so many
different opinions about how to store them.
Should I group them in different modules, or should I just create one big
module and comment every sub I have? Is there a processing-time difference
of having let's say 10 different modules or just having one big one?
Second question: should I save it as an add-in or would you recommend me
saving it as a normal spreadsheet?
I'd appreciate any comment on this matter.
Thanks guys ;o)
kj
- 12
- Excel Misc >> VBA help (and other) pleaseMe again,
A few items:
1) I have plugged this into VB to deny print unless user has selected valid
info from dropdowns:
Private Sub Workbook_BeforePrint_(Cancel As Boolean)
Cancel As Boolean
Cancel = IsEmpty(ShippingRequestForm)(W11, W13, B10, B14, B18, B23,
B37, D37, N37)
Needless to say, ain't workin' & I know nada about VB but trying! Where did
I muck this up at?
2)I have 2 cells with DV (W11 & W13). Trying to make it so user can not
bypass these without choosing from dropdowns. Formula works:
(=IF($W$13="Prepaid,Collect","okay","Invalid"). I can still tab right
through it. If I type anything other than, the error message does work
though. What do I need to add? Additional nested function? Or seperate
formula all together?
3)Dynamic DV list, @ $D$37 for "Description", want same "IsEmpty" rule also
with the ability for me to nest a list of invalid entries ("Documents",
"Docs", "Gift" etc) resulting in error message.
Thx for the email Debra. Gord, Dave et al have been above and beyond. Feel
like I've attended an XL seminar!
Hey Gord, after these my (Your!) beloved Shipping Request Form will be done.
I'll send a copy to you for Xmas! LOL
Thx
- 13
- Excel Programming >> help with IF statementI need a cell to calculate points based on position finished example if
racer finished 1st then he gets 50 points. another racer finishes 2nd he gets
49 point and so on.
Here what Ive tried but it only lets me enter up to 7 th place. I need it to
go to 50th place at least.
=IF(C5<1,"",IF(C5<2,"50",IF(C5<3,"49",IF(C5<4,"47",IF(C5<5,"46",IF(C5<6,"45",IF(C5<7,"44",IF(C5<8,"43"))))))))
Thanks
- 14
- 15
- worksheet functions >> Counting unique items based on dateI have a sheet, with each row containing one record. Column A contains a
date, and column B contains a department. The contents of the column A
(date) are either a simple date "dd/mm/yyyy" format or a timestamp e.g.
"dd/mm/yyyy hh:mm:ss". Duplicates are allowed in Column A, Column B, Column
A + Column B.
I needed (ideally) a worksheet function that would allow me to obtain the
following information:
Based on a START DATE, END DATE and DEPT NAME return to me the number of
times I have the DEPT NAME occuring in my data for between the START DATE and
END DATE (both dates included) but counting multiple rows for the same date
as only 1 record. Thus if I have 27 rows for the same department with date
July 15, then it should give me only the value 1.
The time-part in the timestamp format can be ignored. It exists because of
input data coming from various sources and some sources store time and some
do not store time.
How could I do the above with a worksheet function?
Many thanks.
|
|
|