Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Macro to copy hidden sheet to front of tabs?

I've often thought this would be handy. If there was a macro that
would make a copy of the hidden main sheet, users would be much, much
less likely to somehow overwrite the blank main sheet. Can this be
done, though?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro to copy hidden sheet to front of tabs?

If the sheet is hidden rather than very hidden, you can copy it:

Worksheets("Main").Copy After:=Worksheets(Worksheets.Count)


If it is very hidden you might try

Appliction.ScreenUpdating = False
Worksheets("Main").Visible = xlSheetVisible
worksheets("Main").copy After:=Worksheets(Worksheets.count)
Worksheets("Main").Visible = xlSheetVeryHidden
Application.ScreenUpdating = True

--
Regards,
Tom Ogilvy


"StargateFan" wrote in message
...
I've often thought this would be handy. If there was a macro that
would make a copy of the hidden main sheet, users would be much, much
less likely to somehow overwrite the blank main sheet. Can this be
done, though?



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
Copy and Paste Macro for front totals sheet [email protected] Excel Discussion (Misc queries) 0 May 5th 06 05:12 PM
How can I find/unhide hidden excel sheet tabs on a worksheet? magician Excel Worksheet Functions 1 May 2nd 06 11:13 AM
Sheet tabs are hidden...option is checked okamico Excel Discussion (Misc queries) 4 January 12th 06 09:14 PM
copy from hidden sheet tommy_gtr[_6_] Excel Programming 1 October 5th 05 02:33 PM
Locking Sheet Tabs as Hidden Ted[_9_] Excel Programming 7 February 28th 05 04:49 AM


All times are GMT +1. The time now is 07:10 PM.

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"