Activate Graph
Mar 7, 2010
I am getting old and can't remember how to activiate a graph to accept and show new numbers.
Example: In "Charts and Graphs for Microsoft Office 2007" by Bill how does one get the graph (Figure 3.35) to accept data for the coming months and have the data reflected in the Linear Trend Bar (the forecast bar is not in the figure) but I would like to include it?
View 9 Replies
ADVERTISEMENT
Mar 21, 2014
I would like to make a scatter graph that will graph the attached. The score would be on the Y axis and the birth date would be on the X axis. This is simple to do by itself but what I would like to do in addition to this is to have the top 25% of the scores a single color, the middle 50% of the scores a second color and then the bottom 25% of the scores to be a third color. And if it is possible to have the ID visible when you move your cursor over a given dot in the graph. Currently when I make a scatter graph the X,Y coordinates show when I hoover the cursor over a dot.
View 7 Replies
View Related
Jun 11, 2006
How can i make a graph that will graph against time? lets say i have a bank balance like this:
1/2/2000 $500
1/3/2000 $600
3/12/2000 $400
there may be more than one entry on any one given day, or there may not be an entry for 2 weeks. How can i graph the running balance in a way that it will show the timeline just as a calendar year(or however long i selected) and the points are plotting according to their date, not just equally spaced out.
View 2 Replies
View Related
Dec 30, 2008
I want to use a line graph to display an amount over time - that's the easy part. On the other hand, I would like to have to group the lines based on a value.
A short example:
Imagine you own 3 different stores and you're selling oranges. So your table looks like this:
http://img179.imageshack.us/my.php?image=orangeshm4.jpg
Now I'd like to have one graph (3 different graphs won't work as the rows increase -I need to select the whole column as data source):
Date on the x axis,
Oranges sold on the y axis,
and one line per store (e.g. a green one for store A, a red one for B and a blue one of C, doesn't matter).
View 2 Replies
View Related
Nov 23, 2007
When i exdcute my code in the userform, the line
AppActivate "Microsoft excel"
does not run, so it gives me
Run Time Error 5 :
Invalid proceduer call or Argument
View 9 Replies
View Related
Mar 4, 2009
I have a spreadsheet with several formulas where I have to go into each one of them to activate the calculation. I use F2 and enter. Automatic calculation is on. Do any of you know how this can be done automatically. A VBA-code will fit the purpose.
View 3 Replies
View Related
Apr 23, 2008
I have two or more DIFFERENT INSTANCES of excel workbooks open at the same time. EX: Wk1, Wk2, & Wk3
Currently I have Wk3 showing in the screen.
Through a Macro, how can I display (bring to front) Wk1 without closing Wk3 ?
This is part of a longer macro, so I only need to know how to do above.
View 15 Replies
View Related
Sep 16, 2009
I have an open workbook(A.xls) where the user can press a button which opens another workbook (B.xls) In workbook B they need to add new names then press another button to run another script. The script needs to switch to workbook A in order to work correctly. How can I switch to workbook A without using the name of the workbook? The reason I cant use the name to activate is because the first workbook that is open is not always A.xls
View 4 Replies
View Related
Nov 23, 2009
ActiveCell.Activate. I'm reading through a VBA book and one line of code was
View 4 Replies
View Related
Feb 5, 2010
I'm reading a hyperlink into a spreadsheet using an =index,match,match formula. The Hyperlink appears as the correct one when you read it in the cell, but it does not link to that address....
View 8 Replies
View Related
Jan 19, 2012
I have a cell (B2) in which there is a formula referencing the value of another cell with the purpose of generating a URL- ="[URL] such that when a numeric value is entered in B3, B2 is made to contain the full URL including B3 as a unique identifier.
I have a macro which straightforwardly copies B2 and pastes its value in the same cell, rendering the text value of the URL.
How do I go about activating the URL as a hyperlink in the macro? It seems like if I click in the cell and hit return, or right-click/Hyperlink.../OK I'm creating a macro to reference the exact unique identifier present at the time that I'm recording the macro- e.g. if B3 is "123", I'm setting the macro to set B2 as [URL] rather than the actual unique identifier in B3.
Has anyone successfully activated the content of a cell as a hyperlink dynamically based on its exact content?
View 2 Replies
View Related
Apr 8, 2007
In the following code, I have a find sub... when the user enters a date and hits the "Enter" key, is there a way to bypass the "Ok" key?
Private Sub cmdFind_Click()
Dim ws As Worksheet, myDate
Dim rFoundDate As Range
'check for valid distribution date (between October 1, 2006 thru December 31, 2014)
myDate = txtFindMyDate
With myDate
If DateValue(txtFindMyDate) < DateValue("10/1/2006") Or DateValue(txtFindMyDate) > DateValue("12/11/2014") Then
MsgBox "Please enter a date between October 2006 and December 2014"
.SetFocus
Exit Sub
End If
End With
Cells.Find(What:=txtFindMyDate, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Select
Unload Me
End Sub
View 9 Replies
View Related
Jan 4, 2009
I have 5 Optionbuttons (in userform) named: Sheet1, Sheet2, Sheet3, Sheet4 and Sheet5.
When I open workbook Optionbutton1 (Sheet1) is activated, but what kind of loop(?) I need, if I want activate same named optionbutton than activate sheet.
Example: I activate sheet3 then Optionbutton3 (named sheet3) have to activated also.
I tried simple codes,
First worksheet:
Private Sub Worksheet_Activate()
OptionButton1.Value = True
End Sub
Second worksheet:
Private Sub Worksheet_Activate()
OptionButton1.Value = False
OptionButton2.Value = True
End Sub
View 9 Replies
View Related
Apr 6, 2007
1. What's the difference between:
Worksheets("Sheet1"). Range("A5").Select
and
Worksheets("Sheet1").Range("A5").Activate
?
2. Can I use a Selection. method with an object 'selected' using .Activate in the preceding code line?
3. Say I am currently on Sheet2, Cell A5. When I click the macro button, I want Excel to copy the value from Sheet1, Cell A5 and paste it into Sheet2, Cell A5. But I do NOT want the screen display to actually jump from Sheet2 to Sheet1, and then back to Sheet2. So do I need to use .Activate, or .Select, to copy the value of Sheet1, Cell A5?
View 4 Replies
View Related
Sep 17, 2012
I have a bunch of array formulas that need to be activated by going on the cell, hitting F2, then hitting Ctrl+Shift+Enter. In the attached sheet I have done a record macro to automate this. I have another sheet with something similar just a lot more items on Sheet1 (~250 items). It will be very time consuming for me to record macro and hit F2, then hit Ctrl+Shift+Enter ~250 times so I am wondering if there is any way to activate all the array formulas on the sheet in one go using 1 formula. I'm not too concerned with file size.Also, not all arrays only include columns A and C, other columns (D, G, H and J) are included too.
View 3 Replies
View Related
Dec 14, 2006
Is there a way to activate a Macro with a conditional in one of the cells? It's like this, I want that if the content of A2 changes to "True" then C2,D2 and E2 change to bold and the background color change to yellow. Is there a way to do this?
View 14 Replies
View Related
Nov 2, 2007
Learning VB6 by trial and error from code snippits on the web, however, am embarrassed to say I can't solve this simple one:
Trying to Open an Excel sheet and read it from VB6 code written in another Excel file.
View 12 Replies
View Related
Jun 3, 2009
What is the quickest way to eliminate .Select, .Selection and .Activate from code to increase efficiency?
How do I refer to the range and workbook without selecting them first?
View 14 Replies
View Related
Sep 6, 2005
Consider using a Worksheet Calculate Event macro (not Change Event) to
monitor the cell in question and call your macro when conditions are right.
"coal_miner" wrote:
> Greetings. Is there a way you can activate a macro through a formula.
> Example:
> =if(A1=B1,(macro here),"")?
View 14 Replies
View Related
Jan 1, 2010
=IF(OR(J4="",K4=""),"",NETWORKDAYS(J4,K4,Holidays!Z$29:Z$39)-1)
Above is the formula that I have, I am putting it into Column L. When I do auto fill every row that has data in J and K the formula goes into as you would expect.
However the formula does not activate until I double click inside each individual row and hit enter. Therefore if the calculation in L4 was 1.0, then 1.0 will appear as the calculation in every row of Column L until I double click in each row individually and press enter.
View 3 Replies
View Related
Oct 11, 2011
How do I activate four cells to the right of A5 using the offset function. I will need this to operate indivitually for each row so I cant use Range("B5:E5").Select. All I want to do is to merge the four cells to the right of column A
View 6 Replies
View Related
Aug 3, 2012
I want a macro to be activate ONLY when I check the checkbox. Right now, it activate the macro each time I checked the box.
I want the macro to be activate ONLY when I put the check sign in the checkbox. Is that possible?
View 2 Replies
View Related
Mar 27, 2013
I have a path to a folder that is already running. I just want to bring it up on the screen. Would that be done with AppActivate?
path:
"xxxxxLoanImportFileLoadingDockXXXXXSplitter"
Dim TargetDirectory as String
TargetDirectory = "xxxxxLoanImportFileLoadingDockXXXXXSplitter"
Looking for correct syntax.
View 3 Replies
View Related
Sep 29, 2013
In one Sub() I assign a pathname to a variable. At the moment I am using this to activate the window of a file that is open....
Code:
Windows("OLD LOAD LIST.xls").Activate
But I would rather use this as the file name may sometimes be different...
Code:
Windows(Old_File).Activate
But it isn't working. Is it because I set the Old_File variable outside this Sub() and the variable is losing its contents ? If so, how do I make the variable keep its contents until its changed ?
View 9 Replies
View Related
Oct 3, 2013
How do I use VBA to Activate Sheet1 of a workbook? I am using the following to go BACK a sheet, but really need to get to the first sheet in the workbook.
Code:
Sheets(Sheets.Count - 1).Select
If it's a new wb, then it's tab is called Sheet1.If it's an existing wb, and it only has 1 sheet, then I need that one (in case someone has added a sheet and deleted Sheet1)
View 3 Replies
View Related
Oct 30, 2013
What's the difference in *.select and *.activate is?
IE, workbooks("workbookname.xls").activate and workbooks("workbookname.xls").select.
View 3 Replies
View Related
Mar 4, 2014
Basically, I'd like my macro to be activated whenever the value in cell A4 changes. Cell A4 has a numerical value between 1 and 10. The macro clears a contents table. Here it is:
Sub Clear()
Sheets('Form').Select
Range("H4:L10").Select
Selection.ClearContents
End Sub
How to get the (module) macro to be activated whenever cell A4 changes value?
View 2 Replies
View Related
Dec 11, 2006
I have the below VBA code that I'm working on where I run it after I already have a workbook entitled BRNewBusiness121106.xls (or whatever day it is when I'm running the code) that's open, and the code opens another workbook, BR-MasterAccounts.xls and then does some work between the two workbooks.
The code is stopping with a "subscript out of range" error at this line:
Windows("BRNewBusiness" & Format(Date, "mm/dd/yy") & ".xls").Activate
Why is it doing this? What change do I need to make so the code will activate that already-open workbook?
david
--------------------------
Sub testAfterDAKCSupload()
'
Application.DisplayAlerts = False
MsgBox "new code follows...deskcheck before putting into production"
'edit the below remaining steps to get working properly
Workbooks.Open filename:= _
"D:B HNewBusinessReconciliationB H-MasterAccounts.xls"
'Sheets("summaries").Range("B7").PasteSpecial (xlValues)............
View 9 Replies
View Related
Jul 24, 2007
I need to write a macros that will activate another macros whenever the cell "I4" is modified. So far it is not working the way it suppose to. Maybe anyone can spot a mistake? Here are both Macros that I have: ....
View 9 Replies
View Related
Aug 11, 2007
I have a program with four tabs. How can activate the appropriate tab based on the file name of an image in an image control on a userform?
View 9 Replies
View Related