+ Reply to Thread
Results 1 to 2 of 2

Set formula for a cell w/o reference to filename

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Set formula for a cell w/o reference to filename

    Hi All.
    I have 2 files opened. WBM (WorkBookMaster) & WBU(WorkBookUpdating). Users are currently using WBU. WBU is being updated with new stuff from WBM. When I created WBU, I pass protected the VBA Project so I cannot automate adding a new module. For the users to update WBU, I will instruct them to open WBM from a link and run a macro in WBM from WBU to add the new functionallity. NOTE WBU is protected, so I know where everything is and what all the sheet codenames are.

    I am trying to put a formula in a cell in WBU.
    Please Login or Register  to view this content.
    NOTE: UDF Return_Sheet_Name_From_Passed_Codename("Sheet13") runs correctly. Sheet13 code name is passed and Assembly1 is returned, which is correct.
    Resulting formula in WBU
    ='[GCM.xlsm]Assembly1'!B1
    Result intended:
    =Assembly1'!B1
    The results turns out to have a reference to WBM file name: (I guess it is because the macro is running from that file???). How do I eliminate the reference to [GCM.xlsm]

    Thanks
    Steve

  2. #2
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Re: Set formula for a cell w/o reference to filename

    I have a workaround that is a solution... This works, but is not a solution to the original post..
    Workaround is: Create a named range in WBU. Then set the formula to the named range.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. reference cell for filename
    By Excel_101_Stater in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2017, 06:34 AM
  2. cell reference = filename
    By leighmetcalfe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2016, 06:08 AM
  3. filename reference in a cell
    By rfcomm2k in forum Excel General
    Replies: 11
    Last Post: 02-03-2015, 08:49 PM
  4. Using Workbook.Open Filename to Open a Cell Reference Filename
    By PerplexedMel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2014, 12:20 PM
  5. Edit filename in Formula with reference to a cell in current file
    By yatin1964 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2013, 09:35 AM
  6. Replies: 3
    Last Post: 01-11-2010, 07:07 AM
  7. Reference filename in formula
    By middlectom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2007, 07:37 PM

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