+ Reply to Thread
Results 1 to 3 of 3

Cell reference error in VBA

  1. #1
    Registered User
    Join Date
    03-03-2016
    Location
    nashville, TN
    MS-Off Ver
    2007
    Posts
    24

    Angry Cell reference error in VBA

    The workbook I am working in should get populated from the workbook referenced in the code. The result is the Name of the workbook & name of the sheet get doubled up and causes an invalid cell reference (of course)

    Please Login or Register  to view this content.
    This is what the formula looks like in the Excel bar

    ='[G:\G-NA-ASC-AP\2015 WORKFLOW REPORTS\AGING REPORTS\2016\March\[03-04-16.xlsx]Summary]03-04-16.xlsx]Summary'!$H$21

    It is driving me crazy, why is it duplicating, what am I missing?
    Last edited by bennyamy; 03-11-2016 at 05:40 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Cell reference error in VBA

    it is just because a typo error that Excel intercept and is modifying your formula.
    The [] are required around the workbook name only. Not from the beginning of the path.
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    03-03-2016
    Location
    nashville, TN
    MS-Off Ver
    2007
    Posts
    24

    Re: Cell reference error in VBA

    Thanks, I knew it was something simple

+ 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. [SOLVED] Cell Reference returns error
    By wiwchar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-23-2015, 05:28 PM
  2. Replies: 4
    Last Post: 03-07-2014, 06:57 PM
  3. [SOLVED] formula returns a #VALUE! error if no value in reference cell???
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2014, 05:39 PM
  4. Replies: 1
    Last Post: 04-30-2012, 12:07 PM
  5. Correct reference error on cell
    By avidcat in forum Excel General
    Replies: 8
    Last Post: 12-31-2009, 05:43 AM
  6. Trouble with cell reference error
    By Prodiclson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2007, 01:23 PM
  7. circular error w/o cell reference
    By Remote Todd in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 08:05 AM

Tags for this Thread

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