PC Review


Reply
Thread Tools Rate Thread

worksheet opening problem

 
 
AlexD
Guest
Posts: n/a
 
      15th Apr 2004
I’m trying to do the following:
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet

Set xlApp = CreateObject("Excel.Application")

Set xlBook = xlApp.Workbooks.Open("WorkBookName")

Set xlSheet = xlBook.Worksheets("WorkSheetName")

xlSheet.Visible = xlSheetVisible

But, I cannot make the spreadsheet visible (to open and
see it).

Can anybody help me with it?

Thanks

 
Reply With Quote
 
 
 
 
Dave Jones
Guest
Posts: n/a
 
      15th Apr 2004
Replace:
xlSheet.Visible = xlSheetVisible
With
xlApp.Visible=true

Dave
>-----Original Message-----
>I'm trying to do the following:
>Dim xlApp As Excel.Application
>Dim xlBook As Excel.Workbook
>Dim xlSheet As Excel.Worksheet
>
>Set xlApp = CreateObject("Excel.Application")
>
> Set xlBook = xlApp.Workbooks.Open("WorkBookName")
>
>Set xlSheet = xlBook.Worksheets("WorkSheetName")
>
>xlSheet.Visible = xlSheetVisible
>
>But, I cannot make the spreadsheet visible (to open and
>see it).
>
>Can anybody help me with it?
>
>Thanks
>
>.
>

 
Reply With Quote
 
AlexD
Guest
Posts: n/a
 
      16th Apr 2004
Thanks a lot, Dave.
>-----Original Message-----
>Replace:
>xlSheet.Visible = xlSheetVisible
>With
>xlApp.Visible=true
>
>Dave
>>-----Original Message-----
>>I'm trying to do the following:
>>Dim xlApp As Excel.Application
>>Dim xlBook As Excel.Workbook
>>Dim xlSheet As Excel.Worksheet
>>
>>Set xlApp = CreateObject("Excel.Application")
>>
>> Set xlBook = xlApp.Workbooks.Open("WorkBookName")
>>
>>Set xlSheet = xlBook.Worksheets("WorkSheetName")
>>
>>xlSheet.Visible = xlSheetVisible
>>
>>But, I cannot make the spreadsheet visible (to open and
>>see it).
>>
>>Can anybody help me with it?
>>
>>Thanks
>>
>>.
>>

>.
>

 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      16th Apr 2004
You haven't made >Excel< visible!

Try: xlApp.visible = true

HTH,
TC


"AlexD" <(E-Mail Removed)> wrote in message
news:1d28701c42327$2a5affc0$(E-Mail Removed)...
> I’m trying to do the following:
> Dim xlApp As Excel.Application
> Dim xlBook As Excel.Workbook
> Dim xlSheet As Excel.Worksheet
>
> Set xlApp = CreateObject("Excel.Application")
>
> Set xlBook = xlApp.Workbooks.Open("WorkBookName")
>
> Set xlSheet = xlBook.Worksheets("WorkSheetName")
>
> xlSheet.Visible = xlSheetVisible
>
> But, I cannot make the spreadsheet visible (to open and
> see it).
>
> Can anybody help me with it?
>
> Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening shared worksheet problem =?Utf-8?B?T0pheQ==?= Microsoft Excel Discussion 0 16th Aug 2006 07:47 PM
Opening shared worksheet problem =?Utf-8?B?T0pheQ==?= Microsoft Excel Misc 0 16th Aug 2006 07:40 PM
opening worksheet problem for one user =?Utf-8?B?RGVuaXNlUw==?= Microsoft Excel Worksheet Functions 3 28th Sep 2004 10:29 PM
excel worksheet opening problem sunita Microsoft Excel Crashes 0 6th Dec 2003 07:17 AM
Problem Opening Worksheet Tom T Microsoft Excel Misc 2 12th Nov 2003 11:54 PM


Features
 

Advertising
 

Newsgroups
 


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