Generate CSV automatically using excel macro

Hi,
We actually make dimension hierarchy in excel and then make a CSV file and then load it into planning application. The CSV file containing parent child relationship of dimension members and other properties are made manually.
Can anyone help me regarding how can we generate CSV file automatically using excel macro and vba editor for dimension loading purpose???
Thanks
Agniva Chatterjee

You would need to write the VBA code yourself to populate the spreadsheet, I am not sure what you are expecting the forum to provide.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Using Excel macros & change properties

    Hi,
    1) my program use Excel macro via a runtime.exec(cmd). I want to use JWS to deliver new versions of application but if I have to put my macros in a jar file how can I reach them (no problem with a file propertie or with gif ressources).
    2) how can I change default properties ("Dossier des applications" in French maybe Applications dir in advanced) wich is enabled in the window.
    thanks a lot
    Sophie

    1) my program use Excel macro via a runtime.exec(cmd).
    I want to use JWS to deliver new versions of
    application but if I have to put my macros in a jar
    file how can I reach them (no problem with a file
    propertie or with gif ressources).You have a lot of options how to do this.
    I would try to use the I/O APIs that reads the macro file
    from a web server (InputStream is = url.openStream()) and put it
    in a local file (FileOutputStream = new FileOutputStream(file)).
    Of course you would need a local location where to store it, could
    be hardwired, or asked from the user.
    2) how can I change default properties ("Dossier des
    applications" in French maybe Applications dir in
    advanced) wich is enabled in the window.I do not understand what you want to do. Explain again.
    Regards,
    Marc

  • Execute Infopackage Through BAPI Using Excel Macro (BAPI_IPAK_START)

    Hi everyone,
    I have a problem when execute infopackage through BAPI using excel macro. I have create a button in macro. When this button is clicked, BAPI for trigger InfoPackage will executed (BAPI_IPAK_START) and this button will disabled.
    After this process completely done (traffic indicator for the request is green in update rules), the button will enabled again.
    Here the subroutine or pseudocode that i will write :
    Private Sub ClickButton()
    Begin
    1. ThisButton.Activated = False   --> Disabled Button
    2. Call BAPI/custom Function Module to execute InfoPackage (BAPI_IPAK_START)
    4. ThisButton.Activated = True   --> Enabled Button
    End
    The problem is i need some statement like this between statement no 2 and statement no 4
    Statement That I Want :
    3. Wait Until BAPI Execute Completely
    So user can click this button again only after the process is finished completely. I don't know how to do this in macro (in ABAP i know i can use "WAIT ... SECOND"), others said this can be done using event in schedule option at infopackage. Anyone,please help me.
    Thank you.
    Regards,
    Satria B

    Enter that req number in RSRQ and monitor the load
    or  right click on the DS - manage - you will req in yellow status which is in progress and you can click on the ...takes you monitor screen
    Edited by: Srinivas on Jul 6, 2010 7:51 AM

  • Generating CSV file using java/ stored proc

    Hi Folks,
    I am using Oracle 11g DB
    My requirement is that I have to generate a CSV file which has customer details. Each value that is comma separated comes from different set of SQL queries. I want to write a stored procedure along with java code to acieve this. How do I go about it? Should I return multiple cursors from my stored proc and iterate from the java side to create the CSV file? Any other suggestions?
    Thanks
    Vishal

    >
    I am using Oracle 11g DB
    My requirement is that I have to generate a CSV file which has customer details. Each value that is comma separated comes from different set of SQL queries. I want to write a stored procedure along with java code to acieve this. How do I go about it? Should I return multiple cursors from my stored proc and iterate from the java side to create the CSV file? Any other suggestions?
    >
    Other suggestions? Yes - don't reinvent the wheel - it has already been created.
    1. Tom already wrote such a proc and published it many years ago. See this AskTom thread
    http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:235814350980
    2. See BluShadow's link from the '5. How do I read or write an Excel file?' question in the FAQ at the top of the sql and pl/sql forum
    SQL and PL/SQL FAQ
    3. Use a sql developer query like 'select /*csv*/ * from emp
    4. Search the sql and pl/sql forum for csv and use of the many threads that already answer this.

  • How to generate Cheque Automatically using programmatically

    Hello Abapers,
             My requirement is i need to generate check Number automatically.For this i created payment document number using tcode f-48 and i passed the same document to rffous_c(Payment medium program which generates Check Number Automatically).It is giving error as NO records are selected.what type of document if i pass to rffous_c program i can get check number automatically.Please solve my problem.
    Regards
    Maruthi.K

    Hai Peram,
            Thanks for your reply.I dont want to run F110.With out running f110 is there any procedure to generate payment document number and by using the payment document i will execute payment mediun program(RFFOUS_C program) externally and i will get the check number.THis is my Requirement which i need in the following process.
    Regards
    Maruthi.K

  • How to run excel macros using lookout

    Hi,
    I want use Excel macros for generating custom reports.Is it possible to run macros using run object in lookout
    thanks

    Hi,
    I am pretty sure you can activate macros in Excel using the Run object in Lookout. I can think of two ways you can do this:
    1. You can setup your Excel to run macros on startup using the Auto_Activate method. In this case, you will just launch excel with your workbook using the Run object and that should run the macros automatically. No brainer!
    2. To better control as to when the macros are run we can assign in Excel some shortcut keys for their launching. We then would need to simulate these keystrokes to launch our macros. This can be done using the SendKeys method and some scripting, WHS Scripting for instance. See this pos
    t for a scripting example which simulates Alt+Tab keys to bring-to-front an app.
    You will launch the script from the Run object and this in turn launches Excel and then simulates the keys for luanching the appropriate macros. I admit this is kinda involved, but hey it works!
    Hope this helps,
    Khalid

  • Open .csv file in excel via Labwindows

    Hello
    After writing all my data in a .csv and closing it (using fclose), I would like to open this .csv file using Excel via a Labwindows command so that the user can see all the data. Is that possible? If yes, which function should I use?
    Thanks

    The simplest way of all is to issue the command OpenDocumentInDefaultViewer (): it should automatically open Excel with the document in it. It is equivalent of double-clicking the file in windows explorer.
    If it does not opens the file, you must verify that in windows CSV file extension is correctly associated with Excel application.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Essbase Excel Macro's and Mxl client

    Hello Folks,
    We are working on 11.1.2.1 having Essbase, Planning, HFM and financial Reports & ODI. We have built the environment newly. I have a scenario where we need to run the ODI batches and run the excel macros to load some of the data. Our batches run from ODI. We have distributed environment for Hyperion servers, totally 3 servers.
    Components in distributed environment:
    1. Shared services, Planning, HFM client, BI Reporting tools, EAS client, Maxl,ODI(server1)
    2. Essbase Server,Maxl(server2)
    3. HFM(Server3)
    MS office & ODI installed on Server1.
    We need to run the batches using ODI & Excel Macro's to load the data.
    I have setup  the maxl client in Server1 for the ODI batch to use for loading data into essbase but my problem is i want to use excel macro's also same time. Is there any possibility or workaround to use both at a time on same servers?
    Thanks,
    Tamas

    What is the error you are getting while running it from ODI? I'm assuming that you are getting some error when you said only one is working.
    When you install EXCEL Add-in it is changing your path and abrorpath variables and that could be the reason why maxl is not working. If ODI is using a bat file why don't you set temporary variable and try.
    in you bat file add these lines (before the maxl call, i would ad them to the start)
    SET ARBORPATH=C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient
    SET PATH=%ARBORPATH%\bin;%PATH%
    Regards
    Celvin
    http://www.orahyplabs.com

  • Could not connect to Oracle database from excel macro. Getting connection not open.

    Hi all, 
    I could not connect to oracle database using excel macro. After much R&D also, I cannot find right solution. Please help me where I am doing wrong.
    Sub Button2_Click()
    Dim Conn As New ADODB.Connection
    Dim RS As New ADODB.Recordset
    Dim Cmd As New ADODB.Command
    Dim sqlText As String
    Dim Row As Long
    Dim Findex As Long
    Dim Data As Worksheet
    Dim X As Long
    Dim UID As String
    Dim PWD As String
    Dim Server As String
    Dim strCon As String
    Application.Calculation = xlCalculationManual
    UID = "myUserid" 'Enter the User ID
    PWD = "myPassword" 'Enter the password
    Server = "myHostname or myServername" 
    Set Data = Sheets("Sheet2")  
    Data.Select
    Range("A:J").ClearContents 
    strCon1 = "Provider = Microsoft.ACE.OLEDB.12.0;DATA SOURCE=myHostName;Database=myDBname;uid=myUserid;pwd=myPassword;"
    Conn.Open (strCon1)
    Cmd.ActiveConnection = Conn
    Cmd.CommandType = adCmdText
    ' Put your query next
    sqlText = " select * from table "
    Cmd.CommandText = sqlText
    Set RS = Cmd.Execute
    For X = 0 To 17 
    Data.Cells(1, X + 1) = RS.Fields(X).Name
    Next
    Do While Not RS.EOF 'this loops through the data and puts it in the spreadsheet
    Row = Row + 1
    For Findex = 0 To RS.Fields.Count - 1
    Data.Cells(Row + 1, Findex + 1) = RS.Fields(Findex).Value
    Next Findex
    RS.MoveNext
    Loop
    Application.Calculation = xlCalculationAutomatic
    Application.Calculate
    End Sub
    sammy

    I have set oci.dll in to the path specified. Prior to this I musy say that, I have 64 bit excel 2010 & installed respective drivers from the link provided http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    But
    still I am facing as:-" Provider cannot be found. It may not be properly installed."
    sammy

  • Copying Graphs and Pie Charts generated in Analysis View to Email item using Excel VBA Macro Code

    Hi
    I am currently working on an exce VBA macro code that would help me take snapshots of the Graphs and Pie charts generated in QC for a particular application and copy the same to an email item using excel VBA macro code.
    I was able to write the code to create an email item. But I have no clue of how i can take snapshot of the graphs in Analysis View using excel VBA
    Any help would be highly appreciated.
    Thanks in Advance
    Regards
    Amit

    useramit,
    You are in the consumer end products forum.  You will also want to ask your question over at the Enterprise Business Community.
    Click the plus sign (+) next to Discussion Boards to drop down all the options for servers, networking and any other professionally related problems.
    http://h30499.www3.hp.com/

  • Problems generating csv using bat.xlt in CUCM 8.6.2

    Hello gentlemen
    I`m having some difficulties generating csv from the bat.xlt file downloaded from my CUCM publisher using excel 2010
    I download the file, enable editing and macros, I hit the "create file format" button to generate the columns I need, all looks good so far..
    after filling in some data in the 5 columns I need, witch are Device name, Decsription, Directory number, Display and Line text label (taking care to not enter illigal data, eg boolean, string, integer) I try to press the "Export to BAT format" button.
    a popup message displays "please enter numeric value in the text boxes" and this popup will not go away no matter where I click inside excel after this
    I try to enter a value above 0 in a text box, but I only get to enter a value in one of the boxes before the popup ruins the day, after that the popup message/error message appears immediately if I click anywhere in the spreadsheet
    I have tried to save the file as an "Microsoft excel macro enabled worksheet" (.xlsm) but it doesnt seem to help
    Thanks for your help!
    .xlt file from CUCM included

    Hi Geir,
    It's likely one of these two bugs;
    CSCti42583 - BAT.xlt needs to be supported on 32-bit Office 2010
    Description
    Symptom:
    BAT.xlt does not work in Microsoft excel 2010
    Conditions:
    Microsoft excel 2010
    Workaround:
    None
    Details
    First Found in:                          (2)
    8.6,8.5(1)
    Status:
    Open
    Last Modified:
    May 07,2012
    Product:
    Cisco Unified Communications Manager (CallManager)
    Platform:
    Dependent
    Severity:
    6 - enhancement
    or
    Related Bugs
    CSCtq23985 : Bat.xlt file doesnt work with Localized MS Excel 2010
    Symptom:
    When trying to fill in data in the BAT.xlt file you are getting an error message
    "Please enter numeric values in text boxes"
    While the data entered is perfectly fine.
    Conditions:
    First seen on French Windows Version with French MS Excel 2010
    Workaround:
    Use Bulk Administration -> Export/Import approach instead of the BAT.xlt file.
    Cheers!
    Rob
    "Spend your life waiting,
    for a moment that just don't come,
    Well, don't waste your time waiting" 
    -Springsteen

  • Is it possible to automate Firefox using Excel VBA

    We have done automating Internet explorer using VBA, Now we have few projects which supports and do working on Mozilla only , ..so need to automate the applications in firefox using VBA excel macros .
    I heard it is possible by adding and regestring some dll's. So Could you please help me on this with details.
    Thanks & Regards,
    Nani.

    This forum is for '''user''' support, your question is beyond the scope of user support.
    Try searching the Mozilla Developer Network website about your query. <br />https://developer.mozilla.org/en-US/ <br />
    Here's an article about building a component DLL. <br />
    https://developer.mozilla.org/en-US/docs/Building_a_component_DLL

  • Issues while opening a UTF16 encoded .csv file in excel using c#

    When I tried to open a UTF8 encoded
    .csv file in excel through my c# code, doing something like this:
    m_excel.Workbooks.OpenText(newPath, Comma: true);
    That works fine. Can anyone tell me what to do if I had to open a UTF16 encoded
    .CSV file similarly. All options i tried either fails or print incorrect Unicode characters.
    So somehow we have to specify the encoding format (of the file to be opened i.e .CSV)  while opening using excel functions, which i am unable to figure out.
    Please help me. I am badly stuck here.
    Thanks in advance.

    Hi Jb9952,
    There is an Origin parameter in
    Workbooks.OpenText method, you need to specify this parameter. You could try to use xlWindows (Windows ANSI).
    To get the specify file origin value, you could get the detail code through Record Macro feature in excel.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using excel to generate signal in labview

    Hi there
    I am having a trouble in generating a signal in labview using excel and then plotting it as waveform.
    In excel file, I have 2199 rows and 9 columns with time in second and I want to plot time against other columns except column 1. In rows, I have text in first one.
    Any help much appreciated.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Data File Modified.xlsx ‏554 KB

    smercurio_fc wrote:
    You haven't shown us any code, so we don't know which columns you're using. However, you should be aware that Excel and LabVIEW use different epochs: https://decibel.ni.com/content/docs/DOC-8733.
    Thanks smercurio the link appears to be broken so anyone who tries just remove the "." at the end.
    The best solution is the one you find it by yourself

  • How to generate a report in Excel with multiple sheets using oracle10g

    Hi,
    I need a small help...
    we are using Oracle 10g...
    How to generate a report in Excel with multiple sheets.
    Thanks in advance.
    Regards,
    Ram

    Thanks Denis.
    I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
    rdf paperlayout format will not workout for generating multiple worksheets.
    Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
    Regards,
    Ram

Maybe you are looking for

  • 3G or 3GS

    Should I trade my 3G for a 3GS?? Is anyone having issues with the new phone that you weren't having with your 3G?? I have 30 days to trade it in as I am a new AT & T cust and got the 3G as the 3GS was not in stock. Any help is appreciated. Thank You!

  • Long text message comes in as multiple messages out of order

    I understand why long text messages come in as multiple messages but why are they not in order? It's like someone cut the message in many pieces and delivered them with no regard to sequence.

  • RE:Setting attributes of columns in listviews

    Hello Jack, please use the Debugger to find out if the object '<ListView.Column>' has it's memory. Look also, if the Column you specify is initialized. In most cases your application bombs if you forget the new command to some variables. Hope it help

  • Package maintainance

    Dear all, Now, there is a problem with the package PT_TMW_BASICS, the message number 002 does not exist in message class HRTIM00TDT. So, i want to upadate this package? Can we do that? and how to do? Thanks alot, Quang,

  • H.264 Export Too Damn Slow

    I have a fast computer, but 3 minute HDV video is taking about 30-40 minutes to export from Premiere and AME 5.5. We need a solution guys. This will put me out of business