Openoffice excel macros are commented out

Hello,
I have a problem with  openoffice.org: it comments out macro code from excel worksheets.
The same macro code worked fine in openoffice in ubuntu, it also worked in excel.
So far, I was unable to find anyting in google and the forums, so I'm posting this here (my first post!).
Screenshot:
Any help or comments are appreciated. Thanks!
Last edited by fede (2007-07-08 15:06:55)

Re 'incorporating' - I just meant that your script should open the workbook that contains the macros as well.
What happens if you restructure like this?  (If it doesn't work, you'll need to say which line it fails on.  It would also be helpful to see the macro - or at least to have an overview of what it is doing.)
tell application "Microsoft Excel"
open "Hard Disk:Users:username:Documents:BatchProcess:Optimizer.xlsx"
  tell active workbook
  activate object worksheet "Optimizer.csv"
  end tell
run VB macro "'Personal Macro Workbook'!HV_PaintChanges"
end tell

Similar Messages

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Block Comments are commented out - Jdev 9.0.3 !

    Where can I find any instruction about how to activate block comments in my IDE? I search help index for the word "Comment" and "Block" but nothing was listed. In the "new features" document of this release of JDeveloper it was mentioned block comments are included. So how can we access it and use it?

    Hi Ramin,
    It's actually in the help system: the accelerator is listed in the Default Keymapping topic: find this in the help index by typing "accelerator".
    However, I agree it's bit obscure since this feature is commonly known as block commenting and yet using this term in the help leads to nothing useful. I've logged bug 2559362 against the help.
    Thanks,
    Brian
    JDev Team

  • Commenting out code in TrueCode mode deletes code

    We used RoboHelp X3 and was trying to comment out specific
    sections of a code by moving over to the True Code view and
    commenting them out following the usual HTML standards/conventions.
    However, we found that when we saved the project, generated the
    file, and opened the topic(s) from the source project next time,
    the sections that we had commented out had actually got deleted.
    Could you please help me with this? Is there a specific way to
    comment out code in RoboHelp?

    (I began the earlier reply before I knew what I wanted to
    say).
    Is it possible that when those particular lines are commented
    out, the result is a syntax error in the remaining html or js code?
    Also, consider that html and js code techniques have come a
    long way since X3. Maybe your code is technically correct now, but
    X3 doesn't know it.
    Good luck.
    Harvey

  • Acrobat 9 Pro comments tools are greyed out...

    I just installed Acrobat 9 Pro and am trying to use the pdf portfolio feature. All of my comments tools are greyed out. I have checked te security settings and they are set to allow comments. What am I doing wrong?

    Thanks for the quick reply--that was it. I also realized that the docs must be in PDF format to enable comments. cwh

  • Are excel-macros running on IPad?

    Instead of carrying my laptop, i would like to use an iPad.
    I am using excel sheets with integrated macros.
    Are these macros running on the iPad?
    If yes, which app i have to use?
    Thank you for your help
    Chris

    I've not seen any of the apps that can import Excel documents that can handle Excel macros, though it's possible I might have missed something. I rather doubt it, though, since macros depend on Microsoft's proprietary Visual Basic.
    Regards.

  • How do I make an Excel macro and Labview push to copy Labview calculated data into a cell on demand?

    Hey there, I am a chemist so Labview and programming aren't exactly my strong point. 
    We have a Labview program that we run to control and automated valve manifold that has a thermocouple and pressure transducer that displays the temperature and pressure on the "front panel" of the labview file we run.  The temperature and pressure of the manifold changes in real time while the labview is running.  We must attach a sample to the manifold, take the pressure and temperature, then record those values in an excel spread sheet, one at a time.
    What I would like to do is make a key board macro in excel to automatically type in the current read out of the temperature (and another for pressure) into which ever selected excel cell you are on, so that you don't have to switch back to the labview window to look at it.  I have a very basic understanding of macros in VB but I don't know how to get the labview to make the read outs available for the excel macros to find it.
    Thanks for the help, Here is a screen shot of the block layout of the program.
    Attachments:
    back.JPG ‏79 KB

    Why not have LV put the data in Excel for you?  You can use Actvie X to do this.  There is plenty of information on the forum and knowledge base on how to use Active X and reporting to Excel.  Plus you have the example finder.  Do you have the Report Generation Toolkit?  LV7 is quite old, so I don't know if this is an option for you.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Excel Macro Plotter

    Hello All,
    I am having a challenge in implementing a macro in excel that plots the waveform graph. I have made use of the LabVIEW Excel macro Example with modifications. The challenges are:
    1.       In Excel, both x and y values do not start from zero.
    2.       The scale of the graph is narrow
    3.       The program should stop running after the log switch is pressed and the graph is plotted in excel.
    Note: project.xls sheet should be in same directory as VI before running.
      Thanks.
    Attachments:
    ExcelExamples.llb ‏97 KB

    maxidivine wrote:1.       In Excel, both x and y values do not start from zero.
     I'm not sure I understand what you mean by this.
    2.       The scale of the graph is narrow
    I don't understand what this means either. I assume you're referring to the fact that you're only seeing a "zoomed in" version of the graph. The reason for this is that the macro in the workbook has the range to graph hard-coded in it. It's only plotting the first six rows. You can either modify the macro so it determines the range based on the data (see Excel help on how to write macros), or have it so that you feed in the number of rows as an argument. 
    3.       The program should stop running after the log switch is pressed and the graph is plotted in excel.
    It should already do this, and it does. I suspect the problem you're having is when you're running it with the large array. Writing out 25000 cells one at a time using ActiveX will take forever. 
    As an aside: What's wrong with the LabVIEW graphs?

  • My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management

    I have recently purchased a Mac computer (updated to Maverick) to go with my Epson Stylus Photo RX500 printer which has given excellent service with my old Windows computer. However, when trying to print pictures or photos via Photoshop Elements 11, the best results I can get are using the Colour Management and Epson Colour controls in the printing options box.
    My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management, The only way I can reset the controls is to shut down the printer and computer and restart.
    Could there may be a setting somewhere that I need to adjust please?  I have been in touch with Epson and they say that the Epson Colour controls are part of the Photoshop Elements software but a post on the Adobe forum brought no results and I am unable to contact Adobe.
    <Edited by Host>

    Hello Garry. Thanks for the reply. I guess I should have used a different title from "How do I post a question?" That should come after trying to resolved the colour settings first. However, to answer your question, after experimenting with all the different settings in Photoshop Elements and Epson software, I now start with PSE11 Colour settings then click "no colour management" then after clicking Print, I choose "More Options/Colour Management/Colour Handling/Printer Manages Colour" then I choose "Page Setup/Layout/Colour Matching" which then shows Epson Colour Controls but I also choose "Layout/Colour Management" which then shows "Colour Controls/Mode" I then of course choose an Epson printer profile depending on the paper I am using. I get good results but as I said, the Colour Matching and Colour Controls are then greyed out. Hope that makes sense.

  • Running Excel macros from ABAP

    Hello everyone,
    I am trying to execute an Excel macro from an ABAP program.  We are currently on a 46C system.  While doing some research on help.sap.com I came across the method execute_macro in class i_oi_document_proxy.  I’ve never used methods in ABAP before and I’m not really sure what I’m doing.  Has anyone got this to work?  When I try to run the program it dumps with error OBJECTS_OBJREF_NOT_ASSIGNED.
    Thanks,
    Becky
    Here is the program:
    REPORT ztest_program.
    INCLUDE ole2incl.
    DATA gs_excel TYPE ole2_object .
    DATA gs_wbooks TYPE ole2_object .
    DATA gs_wbook TYPE ole2_object .
    DATA gs_application TYPE ole2_object .
    DATA: h_sheet TYPE ole2_object.
    DATA: document TYPE REF TO i_oi_document_proxy.
    *Name of the macro in Excel
    DATA: macro_string(50) TYPE c
                     VALUE 'FB03process.FromTheBeginning',
          no_flush TYPE c,
          param_count TYPE i VALUE 0,
          script_name TYPE c VALUE 'X',
          error TYPE REF TO i_oi_error
                OCCURS 0 WITH HEADER LINE,
          retcode TYPE soi_ret_string,
          error_string(50) TYPE c,
          retvalue(30) TYPE c.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
       EXPORTING
             text       = text-007
         EXCEPTIONS
              OTHERS     = 1.
    CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
    SET PROPERTY OF gs_excel 'Visible' = 1 .
    GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooks .
    GET PROPERTY OF gs_wbooks 'Application' = gs_application .
    *--Opening the existing document
    CALL METHOD OF gs_wbooks 'Open' = gs_wbook
         EXPORTING #1 = 'D:\temp\FB03process.xls' .
    tell user what is going on
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
       EXPORTING
              PERCENTAGE = 0
             text       = text-009
         EXCEPTIONS
              OTHERS     = 1.
    GET PROPERTY OF gs_excel 'ACTIVESHEET' = h_sheet.
    CALL METHOD document->execute_macro
         EXPORTING macro_string  = macro_string
                   param_count   = param_count
                   script_name   = script_name
                   no_flush      = no_flush
         IMPORTING error         = error
                   retcode       = retcode
         CHANGING  error_string  = error_string
                   retvalue      = retvalue.
    disconnect from Excel
    FREE OBJECT gs_excel.
    PERFORM err_hdl.
    FORM err_hdl.
      IF sy-subrc <> 0.
        WRITE: / 'Fehler bei OLE-Automation:'(010), sy-subrc.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL

    Hi,
    Please correct me if I am wrong but it seems that you have not fetched a handle to the document object before issuing the statement CALL METHOD document->execute_macro. Hence the error OBJECTS_OBJREF_NOT_ASSIGNED is being dislayed. If you want to use SAP Desktop Office Integration using ABAP Objects, take a look at this article at http://www.intelligenterp.com/feature/archive/ or http://www.sapinfo.net/public/en/index.php4/article/comvArticle-193333c63b4bd807d2/en/articleStatistic
    Hope this helps.
    Regards
    Message was edited by: Shehryar Khan

  • What are the settings in mail to see photos that were sent- then email recepient replies back w/ comments but there are no photos to know which one they are commenting about.  how do i see what was sent when they reply?   thanks for your help

    anyone know how to get mail to show the photos back to you?
    ex:  send pictures to friends, they reply w/ comments, but have no idea which pictures they are commenting on because they do not sho up in a reply.
    thanks for your help

    Did you ever get a reply to this.  I have the same problem.  I have the same problem when even when I reply to an email... no photo shows up in my new reply message.  The only way I have figured out is to use the "forward" option.
    But this still does not solve the problem when people email me back... I have no idea what photo they are speaking of.  Instead of a photo... there is a <photo name of some sort>.
    Let me know if you ever hear on this one.
    Many thanks.

  • How to call excel macros programmatically in C#?

    Hi,
    I have a requirement where i need to call excel (2003) macros in C# program. Can anyone help me with a code snippet to do the same?
    The excel macro function takes two input parameters? how can the parameters be passed?
    Any code snippet to do the same in C# would be helpful.
    Thanks.

    Hey there, Sid.  I am tryin gto run your code, but I couldn't even gte it to fire.  Here's what I ahve now:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Excel = Microsoft.Office.Interop.Excel;
    namespace WindowsFormsApplication2
        public partial class Form1 : Form
            private void button1_Click(object sender, EventArgs e)
                //~~> Define your Excel Objects
                Excel.Application xlApp = new Excel.Application();
                Excel.Workbook xlWorkBook;
                //~~> Start Excel and open the workbook.
                xlWorkBook = xlApp.Workbooks.Open("C:\\Users\\Ryan\\Desktop\\Coding\\Microsoft Excel\\Work Samples\\Work Samples\\Historical Stock Prices.xlsb");
                //~~> Run the macros by supplying the necessary arguments
                xlApp.Run("ShowMsg", "Hello from C# Client", "Demo to run Excel macros from C#");
                //~~> Clean-up: Close the workbook
                xlWorkBook.Close(false);
                //~~> Quit the Excel Application
                xlApp.Quit();
                //~~> Clean Up
                releaseObject(xlApp);
                releaseObject(xlWorkBook);
            //~~> Release the objects
            private void releaseObject(object obj)
                try
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
                    obj = null;
                catch (Exception ex)
                    obj = null;
                finally
                    GC.Collect();
    When I hit the play button nothing happens.  When I hot F5 nothing happens.  Do you ahve any idea what I'm doing wrong.  I'd appreciate any advice with this!! 
    Thanks!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Comment out actions in side proxy services in osb

    Do any body know how to comment out certain actions in proxy service in OSB?
    For eg: I have assign, insert, assign, ..route....
    I want to comment out second assign but don't want to delete it, since i might need it later. Can I manipulate the generated code to comment?

    What I meant is that I tried it with a very simple pipeline, a pipeline with one stage and one action. I added the comment tags around that action and it "disappeared" from my pipeline. Later I removed the comment tags and my action was there again.
    But it could get complicated with a pipeline with many stages and actions (that's what I meant by complex). There could be dependencies between the actions (in one you create a variable that you use later in another action), etc.
    I assume you're working directly on the web console. The files are stored in your server's file system but I really advise you against modifying these files directly.
    With your installation of OSB you have an Eclipse (Workshop) with plug-ins for the OSB. You can export your project from the web console and import it into eclipse. You can work on eclipse and then publish your changes to the server.
    There in eclipse you have your files in your file system and you can open them in your favourite text/xml editor. Or inside eclipse you can just right click on the proxy service and choose "open with -> text editor".

  • The recently open files are greyed out.

    The recently open files are greyed out.
    I am using Word Excel 2003 and Windows 8.1
    I have uninstalled and re installed to no effect.
    Any suggestions welcome.

    Hi,
    Please try the following 2 methods:
    1.Click to select the Add new documents to Documents on Start Menu check box on the
    IE tab of Tweak UI. To do this, follow these steps.
    Note To perform the following steps, you must be logged on as a member of the local Administrators group.     
    In Control Panel, double-click Tweak UI.
    Click the IE tab.
    Click to select the Add new documents to Documents on Start Menu check box, and then click
    OK.
    http://support.microsoft.com/default.aspx?kbid=284896
    2.Go to Start—>Run—>Type regedit click ok
    Now you need to navigate the following key from left pane
    HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\EXPLORER
    Now you need to select the following key and delete from right pane
    NoRecentDocsHistory
    Exit your registry editor
    Now you need to go open MS office application click on Tools—>Options
    Click on General Tab, Check the Recently used file list checkbox and use the designated dropdown to select the desired number of entries and click ok
    Note Please backup your Registry before modifiying.
    http://www.windowsreference.com/ms-office/fix-for-ms-office-2003xp2000-recently-used-file-list-is-grayed-out/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • The Function Buttons are Greyed Out in Numbers

    I am new to Numbers having used Excel for years. I am trying to add up a column of figures but when I highlight the column and click the 'Function' button at the top of the page, all the functions are greyed out so not usable. Can someone tell me what I am doing wrong?
    I am using Numbers 3.1, downloaded on Saturday.
    Thanks

    clarie,
    select multiple columns, then drag the quick sum tag or use the formula:
    =sum(<RANGE1>, <RANGE2>, <RANGE3>, ...)
    where <RANGE1> thru <RANGEn> are any valid ranges
    e.g.
    =sum(A:C) will sum columns which would be the same thing as:
    =sum(A, B, C)
    you can also sum rows 1, 4, and 7 like this:
    =sum(1:1, 4:4, 7:7)

Maybe you are looking for