Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This VB6 code code to assign "DupsList" as name to new worksheet appears to
work during execution. But after the run, when I bring up the new worksheet in Excel, the name is still "Sheet1". It forgot my name assignment. Thanks for kind assistance. sXLSSpec = "C:\Documents and Settings\CQA\My documents\" & _ "DuplicatesList.xls" On Error Resume Next Kill sXLSSpec On Error GoTo 0 Set xlApp = New Excel.Application xlApp.Workbooks.Add Set myBook = xlApp.Workbooks(1) 'xlApp.myBook.Worksheets.Add Set mySheet = myBook.Sheets(1) myBook.Sheets(1).Name = "DupsLIst" -- Lamont Phemister |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
Naming a newly added sheet | Excel Programming | |||
Naming a newly added sheet | Excel Programming | |||
Neet to get range of newly added QueryTable | Excel Programming | |||
Add Hyperlink to newly added worksheet? | Excel Programming |