Copy/paste report with a macro.

Hi all,
I want to know if a macro VBA able to copy/paste a report (the equivalent of report action --> Copy report / Paste report) exists ?
Thank you in advance.

Hi Fabrice,
with a button try
Sub Button1_Click()
Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets("Name of the Sheet You want to copy")
ws.Copy ThisWorkbook.Sheets(Sheets.Count)
End Sub
Regards
     Roberto

Similar Messages

  • How to implement copy paste functionality with IE

    Hi Experts,
    I am working on jdev 11.1.1.6.0, I have requirement to implement copy & paste functionality with IE Browser in ADF table. I have followed below link to implement the functionality.
    http://one-size-doesnt-fit-all.blogspot.com/2011/04/aftable-restoring-basic-browser-copy.html
    But copy&functionality is working fine, but when table loading I lost vertical/horizontal scroll bar. Can any one suggest me what is wrong here/what i am missing here.
    My logic:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:sni="/SNIDeclarativeComponentLib">
      <c:set var="tumuiBundle" value="#{adfBundle['sni.tum.view.TestUIBundle']}"/>
      <af:resource type="javascript">
        var globalLastVisitedField = null;
        function captureTableFieldName()
          return function (evt)
            evt.cancel();
            globalLastVisitedField = evt.getSource();
        function copyMenu(evt)
          if (globalLastVisitedField == null)
            alert("copyMenu() Error: No field could be
                                     identified to be in focus");
          else if (navigator.appName != "Microsoft Internet
                                     Explorer")
            alert("Copy function is only
                                     supported in Microsoft Internet Explorer");
          else
            var txt = globalLastVisitedField.getProperty("ItemValue");
            window.clipboardData.setData('Text', "" + txt);
          evt.cancel();
      </af:resource>
      <af:subform id="f1" defaultCommand="srchcb">
        <af:panelStretchLayout id="psl1" topHeight="auto" bottomHeight="auto"
                               styleClass="AFStretchWidth">
          <f:facet name="center">
            <af:panelCollection id="tab" styleClass="AFStretchWidth">
              <af:table value="#{bindings.TestVO.collectionModel}"
                        var="row"
                        rows="#{bindings.TestVO.rangeSize}"
                        emptyText="#{bindings.TestVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.TestVO.rangeSize}"
                        rowBandingInterval="1"
                        selectionListener="#{bindings.TestVO.collectionModel.makeCurrent}"
                        rowSelection="multiple"
                        id="Table" styleClass="AFStretchWidth"
                        contentDelivery="immediate">
                <f:facet name="contextMenu">
                  <af:popup id="pMenu" contentDelivery="lazyUncached">
                    <af:menu id="mMenu">
                      <af:commandMenuItem text="Copy" id="cmiCopy">
                        <af:clientListener method="copyMenu" type="action"/>
                      </af:commandMenuItem>
                    </af:menu>
                  </af:popup>
                </f:facet>
                <af:column sortProperty="Name" sortable="true"
                           headerText="#{bindings.TestVO.hints.Name.label}"
                           id="c33">
                  <af:outputText value="#{row.Name}" id="Nam">
                    <af:clientListener method="captureTableFieldName()"
                                       type="contextMenu"></af:clientListener>
                    <af:clientAttribute name="ItemValue"
                                        value="#{row.Name}"></af:clientAttribute>
                  </af:outputText>
       </af:column?
       </af:Table>
    -Thanks.

    Hi,
    I can't tell. What I can tell is that the code in the sample you reference for sure doesn't cause this - but it doesn't help you I guess.
    Btw.: Here is a solution that works on all browsers. The solution in the blog (Chris - please forgive me) is a bit awkward to be honest.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/012-copy-table-cell-values-169137.pdf
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/tablecellcopypaste-168499.zip
    Frank

  • There is a copy/paste problem with SUN JRE in the application.

    Hi All,
    The application is desinged and developed in Lotus Notes and contains a Rich Text field , its a web based application and loads with SUN JRE for the applet to gets load in the application. Whenever i tries to do copy/paste from Microsoft word document to rich text field in the application i get a text which is parsed with html tags which doesn't come while i loads MS JVM on the browser.
    I tried with SUN JRE 1.5 and 1.6 version , i got the parsingproblem ie text mixed with html and xml tags.
    Any help is appreciated!!.
    Thanks
    Muktesh.

    Hi,
    When we right-click a word that is marked with red or blue underline, it will pop up the suggested corrections context menu. It can give you other options, such as adding the word to your custom dictionary depending on the Microsoft Office program that you
    are using.
    If you want to copy such words, you can use Ctrl + C and Ctrl + V to achieve the goal. Or, we can right-click the word and then select
    Ignore All or Add to Dictionary, and then you can copy the word by right-clicking it. 
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Copy/paste issues with certain files...

        I notice that in some pdf files I get that I can't do a copy/paste.... I think the reason is because its a graphic vs real text (even though it is text that I see) not sure if I have the right terminology here....
    In any case I can't c/p....
    Also, when I do a word search that doesn't work, I assume it's for the same reason....
    Any work around for this, or a way to convert the file to pdf text ?

    Not with Reader no.
    Adobe Actobat has an OCR function or there are a few other third party applications that are dedicated OCR tools.
    cowboy1611 wrote:
    Right, I'm sure it's a graphic/image, so there is no tool to convert to text ?

  • KE31 - Copying a report with newly defined form

    Hi ,
    While creating a new profitability report(Report A)  by copying an existing report (Report B with Form B) with the newly defined FORM(Form A) , the system is creating the new report(Report A) with  the form (Form B) from the copied report.
    How to create the report by copying another report (to get Report A with Form A)?
    Thanks,
    Prabha

    Hi ,
    Thanks for your reply.
    I created form A and used KE31 for creating report A by copying report B.
    While doing so, the report A got the form B not the form A. Though I assigned the form A while creating the report A (with copying report B), the report A got Form B.
    How to create the report A with form A by copying report B?
    Thanks,
    Prabha

  • Copy/Paste issues with CS6 Creative Cloud

    I'm unable to paste text from any document, it's plain text and the copy/paste feature is working on my system including other Adobe installed products.
    Any ideas?

    DW CS6 - Version 12.1 Build 5966
    Windows 7
    Yes I can copy/paste using keyboard short cuts within all system applications including other ADOBE applications but not in DW
    All documents, all sites, all parts of DW.
    This started this morning.
    Thank you Nancy O.

  • Why can I use copy/paste feature with Firefox 4.0 beta 9?

    I am unable to use the copy/paste feature from any website opened when using the Firefox 4.0 beta 9

    Make sure you have the latest version of IDM (version 6.04), based on comments elsewhere that version should support Firefox 4.

  • Copy paste problems with iphone 4s 8.1 upgrade

    I want to copy a few words or lines from Safari (a webpage) to a text message or email, but ever since I upgraded to 8.1 on Monday (three days ago), only an old copy (a url I copied on Sunday) will paste.

    Hi Diane ..
    Tap Settings > Safari then tap to Clear History and Website Data
    Then reset the device.
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    Then open Safari and try to copy / paste.

  • How copy/paste layers with frame animations?

    I have a movie clip (mc1) with 6 layers (under 1 mask) and
    some tweens. (It's just a continuous transition of pictures.)
    I have another movie clip (mc2) that is the same layout
    (different layers.)
    I want to combine the 2 into 1 movie clip. I tried to select
    all layers and copy from 1 and paste to the other, but it doesn't
    paste correctly.
    How can I do this? It seems like it would be easy.
    Thanks

    robertnzana wrote:
    > Any way to "paste frames in place"? I had to move
    everything by hand.
    There is no way. You have to remember that each of these
    instances will have different
    center point so option like this, especially while moving
    frames not the individual
    content itself, wouldn't be of much use, or not very
    accurate. Unless of course, both
    clips from beginning were made in the exact position so the
    center point will be the same
    but then, there would be no need for Paste In Place because
    with same center point, it will
    position your content precisely . Edit Multiple frames is you
    best bet.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Modify Events Dates or Copy/Paste events with different date

    Hi everyone,
    I have about a dozen calendars in iCal. I would like to copy the events of last year exactly a year and three months later. They really are a lot, so manually doing it would be a lot of trouble.
    I have been nosing around Automator solutions and it seems to be quite close to it, but not really it. I think I would have to do it per each calendar anyways, but each event seems like a lot of trouble.
    Any idea?
    Thanks,
    Colin

    It would be relatively simple with Applescript to iterate through each calendar, each event and copy the details to a new event, changing the start and end dates. There might be complications if any of the events were recurring, or had alarms.
    However, even ignoring the fact that 2008 was a leap year, you cannot add exactly one year and three months to a date, because 3 months is not an exact period. What date, for example, is 1 year and 3 months after March 31st 2008? If you want the dates offset a specific number of days, it is easy, but if you want every event that was in March to be copied to June the scripting is likely to be so complicated that it would be easier to do it manually.
    AK

  • OS X - Copy Paste doesn't seem to Work Here!

    Hi...
    In AME, I strive to set an output folder. I DONT want to have to write the same name all over again
    So I try to copy and paste.
    So I click the output path which opens an OS X Browser. I click New Folder and hit Apple+V to paste.
    Nothing happens. I have to right-click in the name field and choose PASTE to do that.
    Wonder if it is my machine only or a BUG !

    Whether the bug is in AME or OS X is rather inconsequential.  It affects the AME experience, therefore Adobe needs to be aware of it.  If our investigation shows that OS X is the cause of the problem then we can send it to Apple via their developer bug report system.
    In this case, I believe it is a bug in AME.  Rather, it is an unimplemented feature; it feels like the copy/paste code just never got hooked up to this dialog.  Doing so is apparently the responsibility of the app developer, though I also see the argument that Apple should enable it by default.  To verify that such behavior was possible, I compared AME's behavior to the same repro steps in After Effects.  Copy/paste works with the similar dialog in After Effects, therefore there is reasonable expectation that we can make it work in AME.
    (FWIW, that means that yes, I did file this bug already.  And no, me filing the bug internally is not a good excuse for you not to do the same if you haven't already.  Seriously, folks, bugs filed by customers carry more weight than bugs filed internally.  It's proof that our customers are affected by the problem.  That doesn't necessarily mean the bug will get fixed faster, but it does give it a better chance.)

  • Copy/Paste difference between CS4 and CS5

    Please help... I am losing my mind...
    I just upgraded from CS4 to CS5 the other day and am at my wits end.
    I use Adobe Illustrator for live trace and paste the paths into an embroidery software for digitizing.
    In Adobe Illustrator CS4, I could copy (ctrl+c) paths in illustrator and then open the embroidery software and paste (ctrl+v) the paths.
    Now that I've upgraded to Illustrator CS5, I can no longer copy/paste paths... why?  The paths simply wont paste into the embroidery software any longer.
    I feel like there is something very fundamental that I am missing.
    Any help is appreciated.

    Hi Larry,
      Thank you for your suggestion.  If you can't tell already, I am far from an Illustrator power user...
    I verified my clipboard settings looked as the attached image and it still did not seem to work.  I also tried every combination of options and none of them worked either.
    Work Flow: I will highlight the paths and copy them, then in the embroidery software when I hit paste, the mouse cursor turns into the processing icon for a split second like it's trying to paste, but nothing ever shows up in the embroidery software.
    I reinstalled Illustrator CS4 alongside CS5 this morning, and tried the same copy/paste process with CS4 (from an illustrator file created in CS5)... works like a charm.  I realize that downgrading to CS4 is not the solution.  However, not being able to correctly operate the copy/paste commands is toying with my ego...

  • Copy/Paste difference in newer versions

    Hello, I developed some problems with my Acrobat Standard 7.0 install when trying to update to 7.1 (it wasn't recognizing my CS2 install disk as the correct source disk it was requesting) so in the mean time I downloaded the latest version so I could access PDF files. I do a lot of copying and pasting from my professors' Powerpoint notes that have been coverted to PDF. In 7.0 I could select all the content, copy and paste into Word and the breaks between each slide did not copy over (which is what I want).
    Now with the newer version the page breaks come along with the copied content, and I cannot figure out how to get rid of them. When I turn on display of formatting symbols in Word I see a small black square where these hard page breaks are, and nothing I do seems to make them go away short of pasting the content into a plain text editor then pasting into Word, but I lose all other formatting that way as well which isn't working for me either.
    Should I just hunt around for a download of the 7.0 version of the free reader, or was this functionality related to having the full version?
    Thanks!!

    Hi Larry,
      Thank you for your suggestion.  If you can't tell already, I am far from an Illustrator power user...
    I verified my clipboard settings looked as the attached image and it still did not seem to work.  I also tried every combination of options and none of them worked either.
    Work Flow: I will highlight the paths and copy them, then in the embroidery software when I hit paste, the mouse cursor turns into the processing icon for a split second like it's trying to paste, but nothing ever shows up in the embroidery software.
    I reinstalled Illustrator CS4 alongside CS5 this morning, and tried the same copy/paste process with CS4 (from an illustrator file created in CS5)... works like a charm.  I realize that downgrading to CS4 is not the solution.  However, not being able to correctly operate the copy/paste commands is toying with my ego...

  • Applescript excel copy paste repeat...

    I'm trying to set up a simple applescript to copy a cell and paste it repeatedly down the column to the last record.
    Can some one help?
    The closest I could find is this:
    tell application "Microsoft Excel"
      copy range range "I1"
      paste special range "I2:I5" what paste values
    end tell
    This works, but I need the script to determine the number of rows with data and paste that many times.

    Glad to help!
    A few things to add:
    1.  You only need a tell...end tell for the whole script as you're only addressing the one app
    2.  It would be useful to enclose the whole of the script (inside the tell Excel) in the
              tell active sheet of active workbook ... end tell
    construction.
    3.  At the end you can substitute the copy/paste special with:
              set (value of range ("F2:F" & rowCount)) to (get value of range ("E2:E" & rowCount))
    4. If you do have a header row, then the following changes in the concatenation section (but, I suppose, given that it's going to be deleted it doesn't really matter!)
      set formula of cell "E2" to "=(IF(ISBLANK(D2),,C2&\" \"&D2))"
              fill down range ("E2:E" & rowCount)
    It should end up looking like this:
    tell application "Microsoft Excel"
              tell active sheet of active workbook
      -- remove unneeded columns
                        set mycolumns to range "M:ZZ"
      delete mycolumns
                        set mycolumns to range "D:G"
      delete mycolumns
                        set mycolumns to range "A:A"
      delete mycolumns
      -- Insert 2 columns to work with
      insert into range column 5
      insert into range column 5
      --contencate addresses from C&D into E
                        set formula of cell "ZZ1" to "=MATCH(REPT(\"z\",50),D:D)"
                        set rowCount to get value of cell "ZZ1" as integer
                        set value of cell "ZZ1" to ""
                        set formula of cell "E2" to "=(IF(ISBLANK(D2),,C2&\" \"&D2))"
                        fill down range ("E2:E" & rowCount)
      -- copy a Contencated address values to column F and delete columns C, D, E
                        set (value of range ("F2:F" & rowCount)) to (get value of range ("E2:E" & rowCount))
      delete column "C:E"
              end tell
    end tell

  • Can't get Typekit to work with localhost (also, another weird issue with copy+paste)

    Hi!
    I've searched through the other posts already, and I *think* I've tried all the solutions, but I still can't get the typekit fonts on my machine.
    I'm trying to use the "orator-std" font.  In the "kit editor", in the "kit settings -> kit settings" tab I have for name "localhost" (w/o quotes) and for domains just "127.0.0.1" (w/o quotes).
    Then (AFTER saving the settings from that tab), I go back into edge animate, I start a new font by clicking that + sign next to "fonts", in the "library" tab.  I set the "font fallback list" to ' "orator-std",sans-serif ' (w/ quotes, w/o single quotes), and then go back to the open browser and go to the "embed code", copy both lines of javascript, go back to edge animate, and... nothing.  It won't let me change ANY text in this box anymore after the window loses focus.  I have to press "cancel" and try again.  So this time, I just type in the orator-std... blah blah, same as last time, but paste in the code successfully as it was already in the clipboard and I didn't need to make the window lose focus.  Okay, so I click "Add font", and apply the font to my text.  Nothing happens.
    Huh... well the "Font's from T" picture is showing up in the bottom right of my screen, so that's odd.  I go to preview in chrome, still ugly old sans-seriff there, also with the "Font's from T" logo in the bottom right.
    I figure "okay, probably just takes a second... or a minute... or w/e like the message said."  Well this was at least an hour ago, so something is still wrong.
    I would love to just delete the font and start from scratch... maybe something got screwed up along the way and it would fix things to just start from scratch.  Well... "sorry" says edge animate... can't let you delete that!  In the "libarary" tab, there's only one font visible, it says "orator-std,sans-serif" (w/o quotes).  If I right click it, the only option is "delete" and it's greyed out.
    I tried doing one with arial instead of sans-serif just now, still not working, but everything shows up in arial now instead of sans-serif... so that's something I guess.
    Apologies if this is just a simple problem that I'm just somehow not grasping.  Please accept this legitimate bug report as payment... the er copy paste bug, I mean...
    Thanks!
    Trevor

    Hi Trevor,
    I'm sorry you ran into trouble here. Typekit can be used locally. However there are some necessary steps that if left out, will cause the fonts not to render. In order to use Typekit locally, you've got to:
    1. Be running a local server when testing your site in the browser. You can tell if you're running a local server by the URL of the local site. If it starts with: file:// then you are just viewing the local file in a browser and not running it from a local server.
    If the local URL starts with: http:// then you're running a local server.
    2. The domain of your local server has to be part of the domain list in your Kit. So, if your local server uses: localhost, you'll need to add this to your Kit's domains.
    I hope this helps. If you have any further questions, feel free to reach out to us directly: [email protected]
    Cheers,
    Benjamin

Maybe you are looking for

  • I can no longer receive my verizon email

    the mail server "incoming.verizon.net" is not responding. verify that you have entered the correct account info in mail settings. I haven't changed a thing but I can not longer get email

  • Is it possible to create a domain with 2 Foundation 2012 servers ?

    Hello, I need to install Windows 2012 servers, acting as DHCP servers, each one managing half of the IP range. There will be less than 5 users registered in this domain. My question is : can I use 2 Foundation versions (each one being a DC) ? Thanks

  • JEE MP: Authoring JEE Application Availability Monitor

    Hi experts, We've imported the JEE WebSphere MP's, completed discovery, enabled deep monitoring, and now have some issues authoring custom "JEE Application Availability Monitoring". In the wizard on the "MBean to Monitor" screen we use the MBean name

  • To run a java service in SAP business connector.

    Hi, I have created one java service in SAP business connector.When i run it, i get the error as " Service 'rfctest:validatedata' is not operational. To run this service, first recompile the Java source." I have set the "path" variable,still i am gett

  • Help! database mirroring ?

    Hi All, i am using oracle 10g, my concern is the if the database(1st) crashes my application may not work, so i need to have another database(2nd) with the same database structure as the 1st one. whatever changes i make to the 1st database to changes