Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I open an Excel web file out side of the web browser view? | Excel Discussion (Misc queries) | |||
Excel tabs keep disappearing and my worksheet pages view changes | Excel Discussion (Misc queries) | |||
Excel background gridlines on worksheet-how do I remove from view | Excel Discussion (Misc queries) | |||
How can I view my Excel worksheet to look like print preview? | Excel Discussion (Misc queries) | |||
How to view a custom view when the worksheet is protected? | Excel Worksheet Functions |