Need to create small macro in excel

Hi,
I have two tab in a excel sheet
Sheet one:
A                      B
WBSLevel2
LFINCT0116951
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFINCT0118382
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFREQ0150864
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFREQ0151759
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFINCT0118553
Sheet two:
A
LFINCT0116951
LFINCT0118382
LFREQ0150864
LFREQ0151759
LFINCT0118553
LFREQ0150823
LFINCT0117950
LFINCT0115636
LFINCT0118043
LFINCT0117840
LFINCT0114946
LFINCT0121200
Now my requirement is if I past list of data in sheet two then in sheet one should be look like as i shown above.
I want to make it dynamic  using macro,for example if i past list of data with 5 records then in sheet two then in sheet one i should get only five set of data .
Please help me to write a macro  that will automatically create data format  as shown in sheet one.

Hi,
I have two tab in a excel sheet
Sheet one:
A                      B
WBSLevel2
LFINCT0116951
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFINCT0118382
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFREQ0150864
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFREQ0151759
Task
Effort to Analyze
Task
Effort to Fix
Task
Monitoring Task
WBSLevel2
LFINCT0118553
Sheet two:
A
LFINCT0116951
LFINCT0118382
LFREQ0150864
LFREQ0151759
LFINCT0118553
LFREQ0150823
LFINCT0117950
LFINCT0115636
LFINCT0118043
LFINCT0117840
LFINCT0114946
LFINCT0121200
Now my requirement is if I past list of data in sheet two then in sheet one should be look like as i shown above.
I want to make it dynamic  using macro,for example if i past list of data with 5 records then in sheet two then in sheet one i should get only five set of data .
Please help me to write a macro  that will automatically create data format  as shown in sheet one.
You dont need a macro to do that. You can do this using formulas. So for example: on Sheet1, B1 cell is =Sheet2!A1, B2 cell is =Sheet2!A5, B3 cell is =Sheet2!A9 ...

Similar Messages

  • How to create a Macro in excel to store the excel data to Oracle Database

    Hi All
    Does anyone has created a macro in excel which on being run stores the excel data to Oracle database. In my project I need to create one such macro for updating oracle database with excel data and another for inserting excel records.
    I tried doing this using a macro in MS access but Client wants its to be done using Excel Macro only.
    Any help would be highly appreciated.
    Thanks in advance..
    Shikha

    Please read Chapter 19.7 Creating Selection Lists (http://download.oracle.com/docs/html/B25947_01/web_complex007.htm#CEGFJFED) of the Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0)
    Cheers,
    Mick.

  • Help Needed in creating dropdown menu in excel using JXL

    Hi,
    I am trying to create dropdown menu in using JXL.
    The Code:
    private void createRequiredRows(WritableSheet writableSheet, List unallowCodeList,int rowCount
                   , int startRowNo,int colCount) throws WriteException {
    Label unallowCode = null;
              WritableFont noBoldFont = new WritableFont(WritableFont.ARIAL, 8,WritableFont.NO_BOLD);
              WritableCellFormat dropDownCellFormat = new WritableCellFormat(noBoldFont,new NumberFormat("000"));
              dropDownCellFormat.setAlignment(Alignment.RIGHT);
              WritableCellFeatures writableCellFeature = new WritableCellFeatures();
              writableCellFeature.setDataValidationList(unallowCodeList);
              for (int rowNo = startRowNo; rowNo < startRowNo + rowCount; rowNo++) {
                   unallowCode = new Label(colCount, rowNo, "Select",dropDownCellFormat);
                   unallowCode.setCellFeatures(writableCellFeature);
                   writableSheet.addCell(unallowCode);
    it creates a drop down in the Excel.
    But writableCellFeature.setDataValidationList(unallowCodeList); has a limitation of characters .So the dropdown menu gets truncated when it exceeds the limitation.
    Can anyone help me in creating dropdown menu in excel without any limitation using JXL..
    Thanks,
    Bisin

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • Create a macro in Excel to capture Data from MS Project

    We have a standard reporting tool which presents data in the format that our Head Office require.  I currently copy/paste data from MS Project into the Excel spreadsheet however I would prefer to set up a macro in the Excel work to get the data from
    the MS Project file however the macro only seems to pick up from the "paste" command.
    Is it possible to set up a macro in Excel to copy data from MS Project?
    M.L. Pate

    Yes, it is possible through VBA coding. Here is a simple:
    http://stackoverflow.com/questions/9347874/how-to-copy-data-from-mpp-file-to-excel-using-macro
    If you have programming/Code related questions, please post your question to the forum for Excel developer
    http://social.msdn.microsoft.com/Forums/en-US/exceldev
    Tony Chen
    TechNet Community Support

  • Need To Create CR Reports From Excel

    Post Author: ExcelOnly
    CA Forum: Data Connectivity and SQL
    Hello all:
    We're living in spread sheet you know what here!   I'm trying to help out in the interim by rewriting some of these in Crystal Reports (I've never used it before).  Can someone please give me some basic steps?  Right now I'm using the version of CR that ships with Visual Basic 6.  I can bring up a spread sheet in CR but CR does not find any tables to select from.
    Thanks in advance!

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    When I start up VB, I click on Project, and click add CR XI, (I have CR XI on this same machine) Right Click in one of the sections (Report header) select database, database expert, create new connection, database files, browse to your spreadsheet and select.

  • 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

  • Create a password protected excel file

    Hi everyone,
    I need to create a password-protect excel sheet using plsql.
    Please if some one could help me with this ??
    Regards,
    Riddhisha Khamesra

    there is no way directly from PL/SQL to make ExcelStarting with Office 2007, Excel's default file format uses the Open XML standard (ie basically a zip archive of XML and other media files).
    You can generate such files with pure PL/SQL, but adding password security is another story...
    - Using a protection at the workbook level requires the creation of an encrypted archive.
    - Using a protection at the worksheet level is easier because the password itself is embedded (in an encrypted form) into the sheet definition.
    Prior to Office 2007, there's the "XML Spreadsheet 2003" format. It opens the way to easy XML generation but it's limited (in particular, no password support, no macro etc.).
    Edited by: odie_63 on 2 mai 2011 15:57

  • How to create a Macro on the BEx Queries

    Hi,
    I got a business case where i need to create a Macro on a particular report.
    That Macro should run on that particular report and it should save into .CSV format and fill the data automatically and that file i need to send to client workstation.
    I got a suggestion that Macros can be done only in BEx Analyzer not in the browser.
    Kindly help me in this...
    Thanks & Regards
    Jagannadha Raju

    Yes, macros can only be created if you are working with a report in the Bex Analyzer. For web reports you may need to look for some javascript function to accomplish your reqt.
    Hope this helps...

  • To create two pages in excel and  excel has to send as attachment

    hi,
    actually i need to create two pages in excel and also i need to send this excel as a  attachment through mail. if anybody knows pls let me know.

    to send mail use standard FM "SO_mail" search for it

  • I need to create a dashboard.  How do you bring Crystal Reports into Excel?

    Hello,
    I need to create a dashboard.  My boss wants a spreadsheet to show multiple reports and charts about the business.  I know you can insert multiple charts in Excel.  However, I need to be able to insert a report next to one of the charts.
    I am thinking of using the RDC and bring in a Crystal Report.  The problem is that I see with Crystal Reports 2008, you can't use RDC.
    Is there an upgrade to RDC?  How do I bring the Crystal Report into Excel next to the imbeddged charts.  I know I can export a Crystal Report to Excel.  But that Exports to a entire spreadsheet.  I just want to embed a Crystal Report into Excel.  The last time I did a project like this, I used to use the RDC with the same code as in VB6.  Worked great.
    How do you embed a Crystal Reports now?
    Thanks.

    The question was how do you do it?
    I don't have .NET.  However, if that is the only way, then I can buy .NET.
    I just need someone that knows how to do it to point me in the right direction.  To embed something in Excel, I hadn't thought of using .NET.

  • 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

  • How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit between both.

    How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit and exchange between both types of operating systems.

    Your Windows system will not open any Pages, Numbers or Keynote documents. No applications exist for Windows that can open those formats. You will need to export your documents in Word, Excel and PowerPoint formats, respectively, before you'll be able to view and edit the documents on your Windows system. The iWork documents can natively open Word, Excel and PP documents, though there are limitations on what can be imported (for instance, Numbers does not support all possible Excel functions). Consult the documentation for the relevant iWork application for details on importing and exporting.
    If you are asking how to get the documents from one system to the other, then there are several ways to do that, including file sharing, using an external drive (hard drive, USB flash drive), or emailing the documents to yourself. Which would be best for your situation I can't say without more details about your usage.
    Regarsd.

  • VB UI builder, RAD, CASE Wizard for creating macro for Excel 2010?

    Hello, I wonder if it is available a: rad, case, UI, framework, application wizard that using VBA as its engine may easy the process to create a macro excel 2010; here the link: https://www.dropbox.com/s/62r5wwgf0ziy5ht/sheet.xlsm to the sheet for an example
    of what I mean. It is not about a macro recorder task; it is not interactive. Thank you.
    Regards, Giuseppe

    Thank you for your interest, this is another link for the same file: http://www.adrive.com/public/rBdrRn/sheet.xlsm
    Regards,
    Giuseppe

  • Trying to Create a Macro...it's not going well

    Hello! 
    I am trying to create a macro for this Questionnaire I am building. I need it to pull information from 3 or so different tables in word (all in same doc) and export them into Excel. I have fields that gather personal info like Name, Address, Telephone Number,
    Email, etc, but also fields that take info like Tax Filing State and Tax ID number. There will be about 40 fields in all when the questionnaire is done. Each field is being filled in using a legacy tool- text form field. Is there some sort of macro shell I
    can use that I can fill in with each field when I have completed it? I have office 2013, not sure if that matters.
    Thank you!

    The following Excel macro will pull the data from all formfields in all Word files in a specified folder into the active worksheet. To run it, simply press Alt-F8 and choose the 'GetFormData' macro. You'll be asked to navigate to the source folder.
    Once you've done that, the macro will populate the worksheet. The first row will be left alone, so you can populate it with headings before or after running the macro.
    Sub GetFormData()
         'Note: this code requires a reference to the Word object model
        Application.ScreenUpdating = False
        Dim wdApp As New Word.Application
        Dim wdDoc As Word.Document
        'Dim CCtrl As Word.ContentControl
        Dim FmFld As Word.FormField
        Dim strFolder As String, strFile As String
        Dim WkSht As Worksheet, i As Long, j As Long
        strFolder = GetFolder
        If strFolder = "" Then Exit Sub
        Set WkSht = ActiveSheet
        i = WkSht.Cells(WkSht.Rows.Count, 1).End(xlUp).Row
        strFile = Dir(strFolder & "\*.doc", vbNormal)
        While strFile <> ""
            i = i + 1
            Set wdDoc = wdApp.Documents.Open(Filename:=strFolder & "\" & strFile, AddToRecentFiles:=False, Visible:=False)
            With wdDoc
                j = 0
                'For Each CCtrl In .ContentControls
                    'j = j + 1
                    'WkSht.Cells(i, j) = CCtrl.Range.Text
                'Next
                For Each FmFld In .FormFields
                    j = j + 1
                    WkSht.Cells(i, j) = FmFld.Result
                Next
            End With
            wdDoc.Close SaveChanges:=False
            strFile = Dir()
        Wend
        wdApp.Quit
        Set wdDoc = Nothing: Set wdApp = Nothing: Set WkSht = Nothing
        Application.ScreenUpdating = True
    End Sub
    Function GetFolder() As String
        Dim oFolder As Object
        GetFolder = ""
        Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0)
        If (Not oFolder Is Nothing) Then GetFolder = oFolder.Items.Item.Path
        Set oFolder = Nothing
    End Function
    Note the commented-out code that allows the macro to work with content controls as well or instead.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Creating a Macro with Adobe Acrobat X v.10.0.0 HELP!

    Hello,
    I am new to Adobe and was wondering if there is a way to create a macro for my situation.
    I am recording voting decisions from a pdf into an excel spreadsheet. I need to go through multiple pdf files and find the pages where votes have taken place. The picture below shows a vote circled in red.
    I then need record the following information:
        1) The number of 'yes' votes and the number of 'no' notes
        2) The names of the people who voted yes and the names of the people who voted no
        3) The pdf page number of the vote
    I would like to compile of the information in an excel file if possible for later use in statistics software (spss).
    There are hundreds of individual votes I need to record and would love it if someone can help guide me in creating a macro for tedious project.
    Thank you!!

    With Reader no. This is the Reader forum. If you have a properly designed form, you can collect the data from the forms and export the data into a spreadsheet. The best way to do this is to host the form on the web. If you wish forms information returned by email, you will be limited to the number of responses you can process if you have them return the entire form. But if you have them return and fdf or xfdf there is no limit to the number of responses you will be allowed to process.

Maybe you are looking for

  • Error while opening a pdf file.

    Hi All, I have Adobe Reader 10.1.3 installed on my system. I am getting the following error : "Adobe Reader could not open 'abc.pdf' because it is either not a supported file type or because the file has been damaged(for example, it was sent as an em

  • _SERIOUS_ DNS malfunction

    I suddently have a serious connection problem in Mac OS X. I've been connecting through Airport for a while now, but now I've moved for the summer and in the new residence I'm connecting through ethernet. For some reason Mac OS refuses to connect to/

  • Creating a  Calendar from SQL Query

    Hi -- I'm trying to create a calendar based on a sql query, but I need to be able to select the unique id in order to pass it to a page that will display the event details. It looks like I'm not able to select a "hidden" value in my sql query, but am

  • I have a macbook air 13inch late 2010.  Does this model have an illuminated keyboard

    I would like to know if my keybord is suposed to light up

  • DBM (Dealer Business Management) Business Content

    Hi, is there any DBM (Dealer Business Management) Business Content in SAP BI? Thanks, Daniel