Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default 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" (remove this if mailing direct) wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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" (remove this if mailing direct) wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Excel 2007 with a perplexing MACRO question Tangohammerli Excel Discussion (Misc queries) 2 February 22nd 08 02:36 AM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM
Help with perplexing form problem Frustrated Excel Programming 6 April 26th 04 09:21 PM
Allocate Files to Sheets and Build a Master Sheet which Summarises All Sheets hanuman Excel Programming 0 September 9th 03 11:23 AM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"