+ Reply to Thread
Results 1 to 3 of 3

Excel cmd button

  1. #1
    Terry
    Guest

    Excel cmd button

    Can anyone help? I have a xls file OfficeXP. I have
    command buttons on it with vba code behind the buttons.
    In one file that I have when I use the copy sheet function
    it copies the button and the code behind the button to a
    new sheet in the same file. In the other file when a
    sheet is copied the button is copied but it does not have
    any coding behind it. Why would these behave
    differently? I want the code copied with the sheet and
    button.
    Thanks for any help..


  2. #2
    Guest

    Excel cmd button

    is the code in the button or is the button calling a
    private sub?

    >-----Original Message-----
    >Can anyone help? I have a xls file OfficeXP. I have
    >command buttons on it with vba code behind the buttons.
    >In one file that I have when I use the copy sheet

    function
    >it copies the button and the code behind the button to a
    >new sheet in the same file. In the other file when a
    >sheet is copied the button is copied but it does not have
    >any coding behind it. Why would these behave
    >differently? I want the code copied with the sheet and
    >button.
    >Thanks for any help..
    >
    >.
    >


  3. #3
    Tom Ogilvy
    Guest

    Re: Excel cmd button

    If you copy the worksheet, the code contained in that sheet module should be
    copied as well. Your experience seems to be atypical.

    --
    Regards,
    Tom Ogilvy

    "Terry" <[email protected]> wrote in message
    news:[email protected]...
    > Can anyone help? I have a xls file OfficeXP. I have
    > command buttons on it with vba code behind the buttons.
    > In one file that I have when I use the copy sheet function
    > it copies the button and the code behind the button to a
    > new sheet in the same file. In the other file when a
    > sheet is copied the button is copied but it does not have
    > any coding behind it. Why would these behave
    > differently? I want the code copied with the sheet and
    > button.
    > Thanks for any help..
    >




+ 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