LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Vj Vj is offline
external usenet poster
 
Posts: 54
Default Cant view excel worksheet in web browser

Can anyone tell me why I cant see the excel worksheet in a new workbook
created by this code if runs through another .xlt workbook open through web
browser.

Sub CreateNewWB()
Dim ThisSheet As String
Dim sheet As Object
Dim currentBook As Workbook
Dim TempBook As Workbook
Set currentBook = ActiveWorkbook

Set TempBook = Workbooks.Add

'If (TypeName(ActiveSheet) = "Worksheet") Then
'currentBook.Worksheets("Sheet1").Copy befo=TempBook.Sheets(1)
'Sheets(ThisSheet).Move befo=Workbooks(TempBook).Sheets(1)
'End If

TempBook.Worksheets(1).Name = "ABC"
TempBook.Worksheets(1).Activate
With Application
'currentBook.Close SaveChanges:=False
'Set currentBook = Nothing
End With
End Sub

 
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
How do I open an Excel web file out side of the web browser view? Rwhite Excel Discussion (Misc queries) 1 October 26th 07 06:53 PM
Excel tabs keep disappearing and my worksheet pages view changes Mikecheck 123 Excel Discussion (Misc queries) 3 September 1st 07 12:54 AM
Excel background gridlines on worksheet-how do I remove from view mj Excel Discussion (Misc queries) 8 August 27th 07 04:53 PM
How can I view my Excel worksheet to look like print preview? Joy Excel Discussion (Misc queries) 1 January 28th 07 12:41 PM
How to view a custom view when the worksheet is protected? JulesJam Excel Worksheet Functions 0 March 6th 06 02:15 PM


All times are GMT +1. The time now is 07:27 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"