LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default default names

Why not just create the new workbook within the current instance of excel with
workbooks.add?

(I have no idea where those names are stored and whether you can access it
directly.)

sali wrote:

"Dave Peterson" wrote in message
...
Not that I know--but couldn't you just add a new workbook and strip out
any
numeric characters at the far right to get the name.


you are right, there are workarrounds, but just wanted "not to reinvent the
wheel"
but, obviously, default "new" names are stored somewhere!

problem i am solving is to "catch" newly created, not yet saved documents
created by some other instance of excel app.
i am using "getobject()" to examine open workbooks.


But I would think that it would be easier not depending on the name at
all.

dim wkbk as workbook
set wkbk = workbooks.add 'new workbook

then use that workbook variable where you want to.

wkbk.worksheets(1).range("a1").value = "hi there!"



sali wrote:

is it possible to know what are default names on particular excel
instalation?
usualy, the name for the new workbook is "book1" [where the base name is
"book"],
but it varies for the other localized languages.
the same applies for sheets, charts ...

is there some application level property that may be read/write to define
new object't default base name?


--

Dave Peterson


--

Dave Peterson
 
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
Worksheet tab names change back to default drbrake Charts and Charting in Excel 0 May 1st 10 05:15 PM
Default Windows Profile without default Office user info Karen Excel Discussion (Misc queries) 0 November 12th 08 04:53 PM
default sheet names Igneshwara reddy[_2_] Setting up and Configuration of Excel 1 June 14th 08 12:23 AM
Default ribbon to open by default when opening xls in browser Hank Excel Discussion (Misc queries) 0 April 10th 08 10:12 PM
Can I set a default to put file names on all spreadsheets? joel Excel Discussion (Misc queries) 1 February 28th 08 03:56 PM


All times are GMT +1. The time now is 10:24 PM.

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"