+ Reply to Thread
Results 1 to 4 of 4

Perplexing sheets.

  1. #1
    ben
    Guest

    Perplexing sheets.

    Have a code that copies one sheet from a workbook to another workbook. Both
    workbooks are open. The sheet is not hidden when it is copied. On some
    machines the sheet copies on others it doesn't. I recieve no error messages
    either way. Both machines run same os and same version office. On machine
    that does not copy, if I step through the code it will copy. I know noone can
    probably help without seeing the code. But any suggestions?


    --
    When you lose your mind, you free your life.

  2. #2
    STEVE BELL
    Guest

    Re: Perplexing sheets.

    Show us your code (or parts of it).
    Indicate where it doesn't work (if possible)

    --
    steveB

    Remove "AYN" from email to respond
    "ben" <bw_rgb@hotmail.com(remove this if mailing direct)> wrote in message
    news:12F68F6A-9BB6-438E-9A12-DB4A8E12CD05@microsoft.com...
    > Have a code that copies one sheet from a workbook to another workbook.
    > Both
    > workbooks are open. The sheet is not hidden when it is copied. On some
    > machines the sheet copies on others it doesn't. I recieve no error
    > messages
    > either way. Both machines run same os and same version office. On machine
    > that does not copy, if I step through the code it will copy. I know noone
    > can
    > probably help without seeing the code. But any suggestions?
    >
    >
    > --
    > When you lose your mind, you free your life.




  3. #3
    ben
    Guest

    Re: Perplexing sheets.

    this line is in the userform activate code and is a public variabl for the
    userform
    Set thiss = ThisWorkbook.Sheets("LISTNAMES")

    this code is run from a private procedure in the userform
    Set tthisw = ActiveWorkbook
    thiss.Copy after:=tthis
    tthis.Activate
    Set tthis = tthisw.Sheets("LISTNAMES")
    tthis.Protect Password:="yellow"
    tthis.Visible = xlSheetHidden

    it is the copying of the sheet that does not work
    --
    When you lose your mind, you free your life.


    "STEVE BELL" wrote:

    > Show us your code (or parts of it).
    > Indicate where it doesn't work (if possible)
    >
    > --
    > steveB
    >
    > Remove "AYN" from email to respond
    > "ben" <bw_rgb@hotmail.com(remove this if mailing direct)> wrote in message
    > news:12F68F6A-9BB6-438E-9A12-DB4A8E12CD05@microsoft.com...
    > > Have a code that copies one sheet from a workbook to another workbook.
    > > Both
    > > workbooks are open. The sheet is not hidden when it is copied. On some
    > > machines the sheet copies on others it doesn't. I recieve no error
    > > messages
    > > either way. Both machines run same os and same version office. On machine
    > > that does not copy, if I step through the code it will copy. I know noone
    > > can
    > > probably help without seeing the code. But any suggestions?
    > >
    > >
    > > --
    > > When you lose your mind, you free your life.

    >
    >
    >


  4. #4
    ben
    Guest

    RE: Perplexing sheets.

    well i've solved the mystery but it still is wierd. The sheet was copying but
    when it hid the sheet i could no longer access it from vb on certain
    machines. One being office 2000 another being office 2003. other machines
    would. oh well at least i know where to go from here.

    --
    When you lose your mind, you free your life.


    "ben" wrote:

    > Have a code that copies one sheet from a workbook to another workbook. Both
    > workbooks are open. The sheet is not hidden when it is copied. On some
    > machines the sheet copies on others it doesn't. I recieve no error messages
    > either way. Both machines run same os and same version office. On machine
    > that does not copy, if I step through the code it will copy. I know noone can
    > probably help without seeing the code. But any suggestions?
    >
    >
    > --
    > When you lose your mind, you free your life.


+ 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