+ Reply to Thread
Results 1 to 3 of 3

Use Function from Personal.XLS in all files (loop)

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Use Function from Personal.XLS in all files (loop)

    Hi All,

    I have a function in my Personal.XLS file that I want to use in all of the files that I am looping through. Is there any way to do this?

    Basically, I have a function in Personal.XLS called "CommentOf" that gathers the text from a comment onto another cell. I want to use this function on all 400 files that I am looping through, but it looks like the function needs to be within a module in the file to be used.

    Is there any way to get around that, so that I can use my function on all 400 files?

    Thank you very much!!

    Function CommentOf(R As range) As String
    Application.Volatile
    If R.Comment Is Nothing Then
    CommentOf = ""
    Else
    CommentOf = R.Comment.Text
    End If
    End Function

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Use Function from Personal.XLS in all files (loop)

    try to create an excel addin based on a function or macro

    refer to this url

    http://www.fontstuff.com/vba/vbatut03.htm

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Use Function from Personal.XLS in all files (loop)

    Is the code to work on all sheets of each workbook,check every cell on each sheet? Pst the loop code so far
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1