Jump to content
Developer Wiki and Function Reference Links ×

Set a worksheet cell to the files name?


Recommended Posts

Hi Guys...

 

First,  thanks in advance for the help. 

 

Has anyone figured out how to set a worksheet cell to the files name?    There doesn't appear to be a function for worksheets... 

 

You'd think there'd be something simple like...  = GetFName   as in VS.     

 

I'm sure I can figure out something by scripting something to create an Object in the document to read.

 

Cheers! 

Dave

 

 

Link to comment

There does not appear to be a WS function to do what you want.

 

Try and create a script from the line below and then enter a worksheet formula of:

 

=RunScript('NameYouGaveTheScript)

 

This is the one line script you need.

WSScript_SetResStr(GetFName);

 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...