Map Point VBA Support
Dec 28, 2006Does anyone know if Mappoint 2006 has automation support? I know that 2004 does. I am wanting to use the automation from excel's VBA.
View 6 RepliesDoes anyone know if Mappoint 2006 has automation support? I know that 2004 does. I am wanting to use the automation from excel's VBA.
View 6 RepliesI have a pivot table as shown below which is pretty straight forward however I am trying to create a macro that will automatically change the point name to match the point name in column E then copy that resulting dispaly to another sheet then pick the next point name in line and do the same thing and repeat for 50 rows, so my end result will be 50 pivot tables ready for printing. I can do this manually but I am trying to make it automatic...BTW the point names in column E change everyday but the pivot table supports the name changes.
Option Explicit
Sub PointName()
Dim Ws As Worksheet
Dim Rng As Range, Cel As Range
Set Ws = ActiveSheet
Set Rng = Range(Cells(2, 7), Cells(Rows.Count, 7).End(xlUp))
For Each Cel In Rng
Ws.PivotTables("PivotTable1").PivotFields("Point Name").CurrentPage = Cel & " "
Ws.Columns("A:B").Copy
Sheets.Add
With ActiveSheet
.Paste
.Name = Trim(Cel)
.Range("A1").Select
End With
Next
Ws.Activate
End Sub
I turned it off for a while and when I turned it back on I am getting an error
Unable to set the _Default property of the PivotItem class
Debugger is highlighting
Ws.PivotTables("PivotTable1").PivotFields("Point Name").CurrentPage = Cel & " "
I am thinking about purchasing a pocket PC. Anyonce can tell me if pocket Excel (or SpreadCE) support Macro/VBA function.
View 3 Replies View RelatedWhen I execute this, I got error run-time error 445, object does not support this action. I am using window vista, microsoft office 2007. How can i change the code to make it workable?
View 2 Replies View RelatedI have a string of payments and want to calculate the Net Present Value. Also, what should be used as a discount rate?
View 7 Replies View RelatedTotal amount to pay by D -
2839300284
Description of Customer
Txn Date
Amount Paid
[Code].....
Is there a way to fix a private sub to catch keydown effect of various combos and textboxes of my userform?
Instead of typing the same thing to each and every control's keydown event just call a sub. Code goes like:
Select Case KeyCode
Case 112
ShellExecute 0, "open", "hh.exe", ThisWorkbook.Path & "1.chm", "", 1
Case 113
If MsgBox("Backup now", vbQuestion + vbYesNo) = vbYes Then BackUp
Case 114
Col = 3
SearchD
Case 115
showexcel
Case 116
readonly
e.c.t.
Instead of that, if i place code in a private sub test() just call test in keydown event
Does anyone know how to cause my controls to look in XP style.
I scanned and did not find.
While clicking a button in the excel, am getting a run-time error. Everybody's need is urgent even I understand boss. Anybody else who is in the same shoes as mine. Here goes the solution:
View 5 Replies View RelatedWhen I run my code (which opens Excel from Access) it does everything it is supposed to but I then get the above error but I do not get the error if I open the VBA window and then run the code. (The code is password protected, not sure if this is relevenat though).
I'm getting a really weird error in that I can't reproduce it. It sometimes occurs when I open the document and sometimes not. HEre is the
Private Sub Workbook_Open()
Dim dic, Dn As Range, rng As Range
Set rng = Sheets("Moisture").Range("B2:B1000")
Set dic = CreateObject("Scripting.Dictionary")
With dic
For Each Dn In rng
If Not .exists(Dn.Value) Then
.Add Dn.Value, ""
End If
Next Dn
Set wksPayment = Sheet10
wksPayment.ListBox2.List = .keys
End With
End Sub
The line that hangs up is the wksPayment.Listbox2.List = .keys line. Any ideas or ways to test or further figure out what is causing the problem?
I am trying to use the Cells Property in VBA but it is not working and I cannot figure out why for the life of me. Below is my ....
View 9 Replies View RelatedNot sure if I am having a brain fade or not but the following code gives an ‘Object doesn’t support this action’ error (at the ‘with..’ line) and I can’t figure out why.
Sub test()
With Application.FileSearch
.NewSearch
.LookIn = "D:"
.FileType = "*.*"
MsgBox (.FoundFiles.Count)
End With
End Sub
I have a userform listbox2 that i am trying to save info from to a worksheet.
I am getting the error "Object doesn't support this poperty or method" when I am trying to set the cell of a find ......
Following code from net and applied.
But runtime error on the highlighted line: "object doesn't support this property or method
Code:
Private Sub cbAddImage_Click() With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.ButtonName = "Submit"
.Title = "Select an image file"
.Filters.Add "Image", "*.gif; *.jpg; *.jpeg", 1
[Code] .......
I'm trying to remove lines in my line charts. I searched the internet and find the following code:
Code:
Sub RemoveLines()
Dim ser As Series
For Each ser In ActiveChart.SeriesCollection
ser.Format.Line.Visible = False
Next ser
End Sub
However, when I run the code, I got "Object doesn't support this property or method". I did select the chart. I have excel 2003 with vba 6.5.
The macro below is stored within worksheet "Data Lookup". When the value in B1 changes, the code is executed but fails when it comes to the paste function. I get a "Object doesn't support this property or method".
Also, it appears the copying is not occuring correctly. It is supposed to copy from the Data3 worksheet but, in fact, its copying from the Data Lookup worksheet. Does storing this macro within a worksheet prevent the macro from moving between sheets?
Sub Worksheet_Calculate()
If Range("B1").Value = Range("N1").Value Then End
Sheets("Data3").Select
Cells(13, 6).Copy
Sheets("Data Lookup").Select
Cells(23, 11).Paste
End Sub
I am using Excel 2003. I get the above error and when I press debug, the issue highlighted is the following:
Code:
graff:
adde.TextBox6.Text = "ok"
shet = ActiveSheet.Name
Set CurrentChart = ActiveSheet.ChartObjects.Add(5, 20, 350, 200)
[Code].....
I was using the following macro on Excel 2000, 2002 & 2003 for many years without a fuss. Recently, I upgraded to Excel 2007. When I run the macro now, I get the following error message:- Run-time error 445 Object doesn't support this action.
Sub test()
With Application.FileSearch
.NewSearch
.LookIn = "C:Documents and SettingsDesktopCommercial Database"
.SearchSubFolders = True
.Filename = "*.*"
.TextOrProperty = "BANK"
.MatchAllWordForms = True
.FileType = msoFileTypeAllFiles
If .Execute() > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
End If
End With
End Sub
Additional info:- The 1st line of my code which is With Application.FileSearch is highlighted in yellow when I run this macro.
I'd like to report an obscure bug in Microsoft's MSForms. ListBox support that has had me tearing my hair out for several days. I started getting a totally useless error message everytime I popped up a very simple dialog to select a Vendor from a list (in a ListBox, of course). The (useless) error message was titled "Microsoft Forms" (okay I could have guessed that - not too helpful), and the message (after the typical error icon - exclamation mark in caution sign) was "Exception occurred." (how helpful is that?!?!)
The debugger was not invoked, and the dialog/UserForm was frozen except for the scrollbar on the ListBox, any control clicked on (there were only the ListBox, OK and Cancel buttons) popped up the same error. Even closing the UserForm popped up the error message once before finally closing the UserForm. No breakpoints were triggered in any event handler for any of the controls, including added error event handlers for each control (and the UserForm istelf).
This dialog (or UserForm) had been working perfectly earlier in my development of this project, so I found it very frustrating when I started getting this error. Since I had no debugging clues (other than what I realized when it was finally resolved, with my 20/20 hindsight), I tried many things to deteremine where the problem was. When I copied the form to a new workbook, the problem disappeared, until I started copying in other controls and/or modules or workbook/worksheet procedures. However, I couldn't see anything in these other procedures that was causing the problem and they were all working just fine for themselves......
I'm trying to write some code to make an existing chart display the correct series of data. However, on the ".SeriesCollection..." lines, it gives me the error "Object does not support this property or method." I'm using a Bar-Line graph, if it makes any difference.
View 5 Replies View RelatedI want to pay salespeople a bonus when they sell things at a higher Gross Profit. There is a minimum markup. I want to say for every additional point above the floor (F) well pay (B*C). There is also the actual attainment filed (A). For this example lets say the floor (F) is 22% and the actual attainment is 26%.
Illustrations:
.22 = 0(B*C)
.23 = 1(B*C)
.24 = 2(B*C)
A = .26
F= .22
What I want is:
if A >= F THEN for EACH POINT above the floor add 1*(B*C)
Its actually buried in a larger IF(AND function and I need to be able to drag the function down a long column and have it scale with volume sold. But its just this bit of logic I'm hung up on.
Picture 2 rows and 4 columns.
The top row is just 0, 1, 2, 3
The bottom row is something like: 850, 790, 200, 250
Here's the problem: I want to find the midpoint of the data set in row 2, based on the values in row 1. So, the sum of the data in row 2 in this example is 2090, meaning the midpoint is 1045.
If we were traversing along the top row as a line, we'd find that midpoint somewhere in the 0.3 range... but how do we get that value?
is there any way to use the right function to return any data to the right of the decimal point?
eg 117.22 would be .22
108.1225 would be .1225
102.358 would be .358 etc
1.jpg2.jpg
I am trying to create a database for part stock but with only one entry point that is in image 1 you would select the machine and part from drop down lists and hit add. It would then lookup the corresponding machine and part and subtract 1 from the current stock database.
I’m using this code to run consecutive programs, which works really well, apart from one little glitch.
View 3 Replies View RelatedSee here:
http://www6.uniovi.es/~antonio/uned/...-754hex32.html
This site allows me to enter a 32-bit Hexadecimal Representation and get Decimal Floating-Point result.
For instance, 4224A012 gives me 41.2.
Is there a UDF available to do this inside of Excel?
I am trying to split the points given to our anglers. here is my formula for assigning the points (column I) based on the place (columnH):
=VLOOKUP(H5,'Supporting columns'!A2:B33,2,FALSE). I tried adding +IF(H5=H5:H33,-1) but this affected all other rankings. if 2 anglers tie for a place, the points for that place are awarded -1.
Is there a way to delete all rows down a sheet until Cell A contains ""
or if the criteria "" would work?
i only want to keep the data below that point.
i will have to do it 11 times for different files
If I am trying to calculate the breakeven moment from a project that has an initial cost and a series of quarterly returns. This is easy to do visually but I cannot figure out how to arrive at the breakeven point from a data set such as this.
e.g. 50,000 spent at time 0
5,000 received in q1
10,000 received in q2
10,000 received in q3
10,000 received in q4
10,000 received in q5
10,000 received in q6
In which month will I break even?