+ Reply to Thread
Results 1 to 2 of 2

Apostrophe added during code

Hybrid View

  1. #1
    Registered User
    Join Date
    03-24-2006
    Location
    Stafford, England
    MS-Off Ver
    Office 2003
    Posts
    70

    Apostrophe added during code

    I am trying to create an excel file from code within an Access database.

    When I use the following line in my code it works but comes out as =Sum('D22':'D35')
    .ActiveSheet.Range("D" & x).FormulaR1C1 = "=SUM(D22:D" & x - 1 & ")"
    The apostrophes return #NAME? error.

    Can somebody help as to what I should be putting in my code?

    Thanks in advance

    Jonathan

  2. #2
    Registered User
    Join Date
    03-24-2006
    Location
    Stafford, England
    MS-Off Ver
    Office 2003
    Posts
    70
    I have worked this out using Row and Column referencing.

    Thanks to anybody who had a look into this.

    Jonathan

+ 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