Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - Selecting hidden worksheets

Hi.

I am designing a workbook in Excel 2002, using VBA6, and i have made
worksheet that contains references and sourcematerial I don't want th
user to see. But when I hid the document, I found that th
sheet(xxx).select function no longer worked.

Help

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel VBA - Selecting hidden worksheets

Hi
in most cases you don't need to select a sheet. Something
like the following works also for hidden sheets:
sub foo()
dim wks as worksheet
set wks = worksheets ("Sheetxxx")
msgbox wks.range("A1").value
end sub

-----Original Message-----
Hi.

I am designing a workbook in Excel 2002, using VBA6, and

i have made a
worksheet that contains references and sourcematerial I

don't want the
user to see. But when I hid the document, I found that

the
sheet(xxx).select function no longer worked.

Help?


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Excel VBA - Selecting hidden worksheets

You can't select a hidden sheet. But you usually don't need to select a
sheet anyway. Show us your code for suggestions.
sheets("sheet1").select
range("a1").select
activecell.copy
sheets("sheet2").select
range("a1").select
activecell.paste

can be this without selections of any kind
sheets("sheet1").range("a1").copy sheets("sheet2").range("a1")

--
Don Guillett
SalesAid Software

"howie " wrote in message
...
Hi.

I am designing a workbook in Excel 2002, using VBA6, and i have made a
worksheet that contains references and sourcematerial I don't want the
user to see. But when I hid the document, I found that the
sheet(xxx).select function no longer worked.

Help?


---
Message posted from
http://www.ExcelForum.com/



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
Can I print hidden Excel worksheets? Ned C. Excel Discussion (Misc queries) 3 August 9th 07 04:10 PM
Excel 2007 - Hidden worksheets pskwaak Excel Worksheet Functions 2 March 11th 07 12:06 PM
how do I link to hidden worksheets in excel? Jon Excel Discussion (Misc queries) 2 November 29th 06 03:38 PM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
What is the keyboard shortcut for selecting worksheets in Excel? Southwest Scott Excel Discussion (Misc queries) 2 September 13th 05 11:46 PM


All times are GMT +1. The time now is 07:16 AM.

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

About Us

"It's about Microsoft Excel"