Consulting

Results 1 to 2 of 2

Thread: How to disable the save dialog box in mappoint ?

  1. #1
    VBAX Newbie
    Joined
    Feb 2005
    Posts
    2
    Location

    How to disable the save dialog box in mappoint ?

    I am using vba from excel 2002(XP) and adding some mappoint functionality. I got it to show the map using the following code .

    [vba]objApp.ActiveMap.DataSets.ShowDataMappingWizard _
    DataSetToUse:=objDataSet, StartPage:=geoDataFieldsPage

    objApp.ActiveMap.CopyMap
    Worksheets("Demand_Maps").Select
    Worksheets("Demand_Maps").Range("e8").Select 'Select e8
    Worksheets("Demand_Maps").Paste[/vba]

    This puts the pie chart in the Demand_Maps sheet. Now I have two questions :
    1. As soon as it copies the map to the sheet .. it shows a Mappoint dialog box with the message 'Save Changes to Map?' . Is there anyway to disable that dialog box so that it does not appear ?

    2. It only copies the map to the spreadsheet but not the legends for different colors in the pie chart. But when you use the actual mappoint software it shows the maps with the pie chart and to the left of it is the legends diagram.

    I would really appreciate your help.
    Thanks,
    Reza

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hi Reza,

    For supressing the message box you are getting, can you turn off events for this? E.g. ...
    [vba]...
    Application.EnableEvents = False
    'other code here
    Application.EnableEvents = True
    ...[/vba]
    As for #2, I don't use MapPoint, sorry.

    [uvba]see this[/uvba]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •