Creating a macro for export to excel using a custom map

Hi all
I've created a custom map to export a custom table to excel, which works. Then tried to create a macro to do this export for me and it was stopped on the 'File; Save As' part of the export (almost the very beginning)
Looking for suggestions for best practises or anything to watch out for when creating a macro to export (or any help in general in this area...books, etc)
Using MSP 2010 (Pro)...we have server but I was attempting this as a stand-alone project
Thanks in advance for your response
Shelleyb MCTS

Firstly make sure you have SP2 installed. Then try recording a macro of you manually saving to Excel with a pre-saved map. Compare the recorded code and your code.
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz

Similar Messages

  • Create a picture for a Button without using a custom control

    So I enherited the system I am currently developing. One thing the guy did before me was put pictures on all of his buttons. I have no clue how he did this as I just starting using Labview several months ago. Now I want to add my own buttons and want to replicate how he did it.
    All the solutions I have search for use custom controls to attain their desired effect....well apparantly the guy did it a different way and I can't figure out how. I posted a VI with just the buttons he made in it so you can see what I am talking about.
    Attachments:
    buttons.vi ‏87 KB

    BCharlton44 wrote:
    So how do you create a custom control without the need to make a ctrl file then?
    Becasue you can make the custom button and apply it and never save it. If you right click on the button you should be able to got to the advanced and then to customize and still be able to edit the buttons that are on your code.
    You will have to make new pictures to import to your custom display. The only other way to do this would be to make your button transparent and add a picture behind it.
    Tim
    Johnson Controls
    Holland Michigan

  • How to create a macro for a planning type in MC8b transaction

    Hi,
    I am presently working for a product allocation demand, which have a information structiure with characteristic and key field.
    the characteristic are production allocation quantity, incoming order quantity, and open order quantity.
    i have created a planning type in which the data updation takes from the excel file to the planning type in mc95.
    but i need to create a macro for this planning type .
    can any body give the details information how to create a Macro for a planning type.
    Thanks and regards
    GopalKrishna

    Dear Gopal
    May be the link would be helpful to you.
    [Planning Types and Macros|http://help.sap.com/saphelp_46c/helpdata/en/a5/631cc443a211d189410000e829fbbd/frameset.htm]
    Drill down the left tab once you opened the link, for more information.
    Thanks
    G. Lakshmipathi

  • How do you create a macro for Acrobat Convert Multiple Reports action in Microsoft Access

    I have several reports in microsoft access and I've been able to combine them into a single PDF file using the Acrobat Convert Multiple Reports feature. Is there a way to create a macro for this action? I would like to create a time event for this procedure.
    Any help I get on this is greatly appreciated.
    Thanks

    CTPetEng,
    Since this question is not related to CreatePDF, but rather to Acrobat, I'm moving your question to the Acrobat forum.
    Dave

  • Tips on designing reports for export to excel

    There is a document mentioned in help that I have a link to and the link and searching never get me to it. Can anyone help me locate this...I need tips on how to better design a report when you know it will be used for exporting to excel.
    the document is supposed to be called    scr_exportexcel.pdf
    Thank you!
    Kristin

    Hi,
    Try to search Product guides from http://help.sap.com/
    Regards,
    Shweta

  • Exception : Export To Excel using POI in ADF

    Hi,
    When i am using POI jars for export to Excel functionality I ma getting the following Exception.
    Actually page contains simple button .When user clicks on the button i am getting the values from the iterator and then exporting those values to the Excel using POI.
    javax.faces.el.EvaluationException: oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: org.apache.xmlbeans.XmlOptions Dependent class: org.apache.poi.POIXMLDocumentPart
    Loader: current-workspace-app.web.ExportToExcelPOC-ViewController-webapp:0.0.0
    Code-Source: /C:/Documents and Settings/dtamarap/Desktop/export/poi-bin-3.6-20091214/poi-3.6/poi-ooxml-3.6-20091214.jar
    Configuration: <classpath> in C:\Durga\Jdev\jdevstudio10133\jdev\mywork\ExportToExcelPOC\ViewController\public_htmlT
    he missing class is not available from any code-source or loader in the system. at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406) at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019) at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451) at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85) at test.ExportToExcel_jspx._jspService(_ExportToExcel_jspx.java:57) [test/ExportToExcel.jspx] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at
    .............................

    When you run your application, it is complaining that it cannot find a class. That class is part of Apache XMLBeans (http://xmlbeans.apache.org/). You need to ensure that you get the XMLBeans JAR file and include it in your project, just like you did for the Apache POI JAR file.
    John

  • How do i create mailing labels for an avery template using pages

    how do i create mailing labels for an avery template using pages.

    mcc,
    The first topic in the "More LIke This" box to the right of your question is a rather comprehensive address label printing discussion. Does it answer your question?
    Jerry

  • How do I create a watermark for my website logo using Adobe Photoshop CS4?

    Hello!  I need help creating a watermark for my website logo using Adobe Photoshop CS4.  Thank You!

    MFS APPLE PRO wrote:
    Hey Don,
    This is a pretty straight forward process, in settings on your phone go to general>network>personal hotspot. As SP has said most likely you will have to contact your wireless provider to set it up. I know for at&t you can set up this option through att.com/wireless or dial 611. It will cost you around 45 dollars per month and this gets you the ability to tether up to 4 wireless devices and alots you 4GB per month data. Hope this helps.
    Mike
    I've heard that it will also cancel your current contract.  That isn't such a huge deal unless your current contract is an unlimited one--you can never get it back.
    Does anyone know for sure?  I've asked AT&T and received a "Yes it will cancel your current contract." and "No, it is a new contract--you keep your old contract if you wish."  I suspect it is the former but it would be good to know for sure before ordering the service.

  • How to create volume slider for flash cs 5 using action script 2.0?

    how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
    stop();
    mySoundBtn.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip");
              mySoundC.start(0, 10);  //10 represents the number of loops
              gotoAndPlay(2);
    This sound plays till 3-4 scene ahead.
    Can anyone help me?

    Hey thnx Ned.
    this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
    Below is my slider code for sound.
    onClipEvent (load) {
        mySound1 = new Sound();
        mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
        mySound1.onSoundComplete = function() {
        mySound1.start();
        mySound1.start(0.058,999);
    onClipEvent (enterFrame) {
        downloaded = mySound1.getBytesLoaded();
        total = mySound1.getBytesTotal();
        if (downloaded != total) {
            _root.dl = "You have to buy this software...";
        } else {
            complete = 1;
            _root.dl = "";
        mySound1.setVolume(ratio * 2);
    This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
    Below is my button code.
    stop();
    mySoundBtn4.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip4");
              mySoundC.start(0, 300);  //10 represents the number of loops
              gotoAndPlay("play1");
    this is on button's frame.not exactly on button.
    Button and Slider both are on diffrent scene.
    Can you plese help me out?

  • How to create an Invoice for the sales order using the T-Code VF01

    Hello Experts,
    How to create an Invoice for a sales order using the T-Code VF01?
    Thanks in advace,
    Suma

    hi,
    Make the following settings-
    1. Create sales document and billing type
    2. assign billing type in sales document type config VOV8
    3. Activate itemcategory as sales order related billing
    4. Maintain copy control header and item level between sales order and billing
    5. Maintain pricing procedure for sales order and billing
    6. Define Output procedure in case to print invoice
    Regards
    Goutham

  • Best way to create dataset to be exported in Excel for further elaboration

    Hello experts!
    I need help with some of my custormers, that perform their work in a way that I partially disagree.  They work in BOXI R3.1 SP3.
    They use webi on top of relational universes (DWH layer in Oracle DB).
    We created reports in webi that cover their standard analysis, but for their spot analysis they find difficult to work in webi.
    I think that it partially depends on lack of known of the tool (even if they have been trained).
    Anyway they need a solution to this issue:
    they wont create in webi a basic set of information inserting reclassifications of information and some calculation in webi. Then they need to export information in excel to do their on spot calculations. Those dataset are often big, so they find following issues:
    1)they tried to use Live Office to import the table they need but the limit of the datastream size is reached quickly (currently limit is 50Mb in our settings , but is reached even from report that exported with Save to my computer As Excel are not more than 10Mb ). I discussed with B.O. administrator and increasing much more this treashold affects general  performances of other services.
    2)Exporting in excel with Save As is quite cumbersome and they can't use .xlsx format as it is only supported by BI4.0 .So they get tables with more than 64K rows splitted over many sheets.
    3)They also tried to export in CSV format to eventually further elaborate in Access, but .CSV only retrieve the information of the Microcube extracted by the query, not the data elaborated in the report.
    Anyone can suggest further ways to behave?
    Kind regards.
    Roberto.

    there are 3 options I see :
    1. Learn to use webi, it can do everything excel can and more
    2. I question ability of anyone to deal with that much data in excel, you should agregate data on DB side and push most of calculations there. Then your exports will be much smaller.
    Better designed semantic layer will allow your users to get needed data quicker and in less volume, making their work in webi or in excel easier.
    3. Use DF/DI products as ETL tools into your Excel users.

  • Useful code for exporting to Excel xlsx

    I wanted to "give back" by posting this little code sample for exporting a query into Excel xlsx
    Kudos to Charlie Arehart for helping me increase the server memory and java heap size.
    This code works for me using CF 9 on Windows Server 2008 R2. By the way, CFSpreadsheet seems to consume a lot of memory on larger exports. For this reason, we increased the server's physical memory, then used CF Administrator to increase the jvm heap size in the Administrator -> Java and JVM settings. My max java heap size is now 3072.
    Need help? I recommend you contact Charlie Arehart on server issues: [email protected]
    Code:
    Example query is called "Myquery" Spreadsheet is called "Myspreadsheet" I export the spreadsheet to a subdirectory called "xlsx" I use cflocation to direct the browser to the spreadsheet. The browser prompts the user to open, save or cancel.
    <cfset var_filenameis = "Myspreadsheet.xlsx">
    <cfset SpreadsheetObj = spreadsheetNew("true")>
    <cfset SpreadsheetObj = spreadsheetNew("#var_filenameis#","yes")>
    <cfspreadsheet action="write" filename="./xlsx/#var_filenameis#" query="Myquery" overwrite="true">
    <cflocation url = "./xlsx/#var_filenameis#">    

    An inline DataTable is not the same thing as exporting data in a standardized XLSX format.  (I'll post the script I use in another comment.
    Regarding inline tables, here are some other worth scripts:
    Handsontable - minimalistic Excel-like data grid editor
    http://handsontable.com/
    TableSorter 2 (forked) - sorting, filtering, grouping, pagination, inline editing, sticky header
    http://mottie.github.io/tablesorter/docs/
    jQuery Grid Plugin
    http://paramquery.com/
    jQuery table to CSV
    http://www.kunalbabre.com/projects/table2CSV.php
    jQuery Pivot - presenting table data in pivot form
    http://metalogic.dk/jquery.pivot/demo.htm

  • Export to excel using service for office 2007

    Hi All,
    I am using a service to download the opport search result data into excel. Inside the code, it gets all the data and opens one window of excel download and closes automatically after few second. And finally does not download anything.
    It is working for office 2003, not for office 2007.I am following piece of code.Please help me how to achieve the same.
    DATA: l_xstring TYPE xstring,
          app_type type string,
          app_type_c(50) type c.
    app_type = 'APPLICATION/MSEXCEL; charset=utf-16le'.
          app_type_c = app_type.
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
              text     = output      "my data to be exported into excel
              mimetype = app_type_c
            IMPORTING
              buffer   = l_xstring.
          CONCATENATE  cl_abap_char_utilities=>byte_order_mark_little
                       l_xstring
                       INTO l_xstring IN BYTE MODE.
    server->response->set_header_field( name =  'content-type'
                                        value = app_type ).
    server->response->delete_header_field( name = if_http_header_fields=>cache_control ).
    server->response->delete_header_field( name = if_http_header_fields=>expires ).
    server->response->delete_header_field( name = if_http_header_fields=>pragma ).
    server->response->set_header_field( name = 'Content-Disposition'
                                        value =  'attachment;filename=Opportunity_Result.xls'  ).
    CLEAR lv_length.
    lv_length = XSTRLEN(  l_xstring ).
    server->response->set_data( data =  l_xstring
                                 length = lv_length ).

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Export to excel using value set

    Hi all,
    I have an ALV table and in some columns I show the texts defining value_set (set_attribute_value_set). When I export the table to Excel using the standard button in the file I can see the codes, not the defined texts. How can I solve it? I thought about defining additional columns which will contain the texts and will be invisible in the screen and visible in Excel sheet instead of the column with codes, but I would like to know if there is any easier solution.
    Thank you,
    Anna

    Hi
    You can use Filedownload control to download the content you prepare as XML
    reading the context.
    For Ex: if you have product ID, Product Name and price as attributes.
    you can create the XML string as
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <products>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    </products>
    copy paste this in note pad name the file as products.xls and open it in MSXL.
    similarly you can read the context and form this xstring and just supply to filedownload control.
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Exporting into Excel Using the Dynpro Binary Cache is not working on NW04s

    Hello,
    I am using excel data export using the
    "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" guide at
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353">this link</a>.
    The tutorial is working on NW04 but when I use it on NW04s I receive errors for the StringBuffer object:
    java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
    Any ideas?

    Hallo Roy,
    I have created an updated/enhanced version of this tutorial running on NW 7.0. The new solution allows to open the exported Excel File instantly without opening a popup window befor:
    See <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>.
    <b>NOTE:</b>
    Use <b>LinkedHashMap</b> instead of <i>HashMap</i>
      private Map getProductColumnInfos() {
        Map columnInfosMap = new LinkedHashMap();
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
        columnInfosMap.put(
          IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
          "Total Per Article In Euro");
        return columnInfosMap;
    This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
    Regards, Bertram

Maybe you are looking for

  • FLAC audio files in iTunes - How should I convert?

    I want to put some FLAC recordings/audio/songs I have in my iTunes. Unless I'm misunderstanding something, iTunes will not accept that format. Does anyone have a suggestion for the best way to re-format those files to something iTunes will accept (li

  • How to reflect data changes back to the external XML

    Hi, In one of my application, I use data for (any of) my Flex component from an external XML (thru a HTTPService) request & a Java backend function provides the XML data. I bind the HTTPService result to XMLListCollection & I supply this data for the

  • Tethered Shooting with Nikon does not save on CF/SD Cards

    Has Lightroom 5 now a solution for the tethered shooting with Nikon cameras where no save on the CF/SD cards takes place? If not, will this covered in the future?

  • Impdp network mode can use bequeath connection?

    Hi, I'm going to import a single database using FS to a RAC on ASM both are in same server running oracle 11.2.0.3. So I was wondering if can I use network link mode of impdp without setting up a listener using 10gb Ethernet interface ? I don't want

  • Can't use Apple id to sign in to itunes

    Here are the specifics: When I try to sign in, I get a message that "This apple id has not yet been used at the itunes music store" and I am taken to the contract page. I agree to the contract. Next, I am taken to the credit card info page. The scree