LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default filenames and workbooks

Hi all!

I have 2 odd problems in a system where I open 2 more files and process
data in the 2nd one.

1. when opening a file from a script in a excel file, I would asume,
that they file opened would become workbook(2), but by some odd reason
it becomes something else, and "myself" becomed workbook(2). This
problem was not present a few days ago...

2. I have the filename including path, but how do I get the name (of
that string) in order to do like this: workbook(filename)
E..g I have c:\sdgfsda\safsd.xls and I only need the latter part
"safsd.xls"

3. (bonus) how do I set a cell() to a number, but as it was a string?
E.g. a number and a dot? ("1.")

 
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
Filenames and formulae SimoninParis Excel Worksheet Functions 4 September 25th 09 04:21 PM
getting filenames jim9912 Excel Programming 3 March 30th 06 05:55 PM
Open workbooks - filenames change daily GillianHG Excel Programming 2 November 17th 05 06:41 PM
Getting filenames via VBA Andrew Excel Programming 5 April 15th 05 12:41 PM
Filenames In Loops JEff Excel Programming 2 January 14th 05 06:43 AM


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