+ Reply to Thread
Results 1 to 4 of 4

Argument Not Optional error on click of Ctrl+V in Excel 2007

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    4

    Argument Not Optional error on click of Ctrl+V in Excel 2007

    Hi,

    I have migrated the Excel 2003 templates to Excel 2007 with Ribbon Customization. For that I used Office 2007 Custom UI Editor tool. Also used VBA.
    The basic functionality of Paste is not working in New Excel 2007 templates.
    I am getting Argument Not Optional error. So i wanted to disable Ctrl+v which is also not happening.

    Please help.


    Pri
    Last edited by VBA Noob; 11-11-2008 at 09:29 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    If your ribbon xml is using the onaction parameter to specify a macro to be run you will need to update the routine header of the routine to contain variable object of IRibbon type.

    The CustomUI tool has a button for generating the Callbacks required for your onaction routines.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    4
    There is no such code written in VBA for Ctrl+v as it is the basic functionality of Excel because Ctrl+c is working fine w/o code.

    The same copy-paste is working fine macro enabled excel 2003 templates.

    I am not able trap the error also.

    Pri

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Does the template that errors contain vba macro(s)?

    Have you changed the routine signature to work from xml definition?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1