+ Reply to Thread
Results 1 to 2 of 2

Why does this error out on the line shown below in red?

  1. #1
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Why does this error out on the line shown below in red?

    I need to copy a date from a Master pricing table on the C drive to warn management when the salesmen didn't have the most current data and want to copy the date on the master table as the workbook opens.
    ------------------
    Private Sub Workbook_Open()

    Master_Table_Date

    End Sub


    Private Sub Master_Table_Date()

    Application.ScreenUpdating = False


    'Enter Last_Update date from Master Table as it Opens (Mitch, I move to the right sheet, then to the right cell then I want to enter the date from a file on the C drive.)
    Sheets("Output").Select
    Range("Master_Date").Select
    ActiveCell.FormulaR1C1 = "='C:\Users\Public\Documents\Prospect Pricing Tables.xlsx'!Last_Update"
    Range("A1").Select

    End Sub

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Why does this error out on the line shown below in red?

    First, I believe you need square brackets around the file name. Second, either you don't have a sheet name or a range. I'm thinking you are pointing it to a sheet named Last_Update, but that is not a formula. You need a range or a cell name such as R1C1.
    ='[Filename]Sheetname'!CellReference
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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] line chart, first few points no line shown
    By hluk in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-07-2014, 05:23 PM
  2. Pick item in column to be shown in line and columns
    By kuzna26 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2014, 05:30 AM
  3. Chart with groups shown as line and not bar
    By etaf in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-16-2013, 02:27 PM
  4. Single value to be shown as a horizontal line in control charts
    By Sreejith.ag in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-18-2012, 12:42 PM
  5. [SOLVED] 2 data ranges shown on 1 line with 2 axis
    By Nadia in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-12-2005, 10:05 AM

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