+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Interface

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Interface

    Hi All,

    First time poster, long-time viewer (different username).

    I am experiencing an issue while running a macro in Excel 2003 ("Runtime error '1004' - unable to set the values property of the Series class"). The code was originally designed and used in Excel 2007 which runs without error. Due to software requirements at work, I need to convert the VBA coding to be compatible with Excel 2003.

    When running the macro, a part of the code labeled "SeriesCollection" appears to be the root of the problem. I have not been able to find a work-around in the forum or from my Company's IS team, so any VBA advice to get me started would be greatly appreciated! Please feel free to reference the Waterfall worksheet uploaded in .xls (converted to Excel 2003 format).

    Below is the code used in the worksheet.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bsykora23; 10-17-2011 at 12:50 PM. Reason: Vague Title

  2. #2
    Registered User
    Join Date
    10-12-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    I welcome all thoughts, advice or commentary to help me jumpstart this coding fix. Thank you in advance!

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    Bump no response

  4. #4
    Spammer
    Join Date
    01-26-2010
    Location
    Worcester MA
    MS-Off Ver
    Excel 2003
    Posts
    184

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    Probably it's because your formula for Range is not in R1C1 notation. You could either:

    1. Convert the formula so it generates an address R1C1 notation.

    2. Use instead

    Please Login or Register  to view this content.
    The second approach requires less recoding.

    Also, it's not a good idea to use a keyword ("Range") as a variable name.
    Jon Peltier
    http://PeltierTech.com/

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    Probably this suffices:

    Please Login or Register  to view this content.
    Last edited by snb; 10-16-2011 at 06:52 AM.



  6. #6
    Registered User
    Join Date
    10-12-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    Jon,

    Thank you very much for the quick response and coding advice. The recommended coding integrated seamlessly with the Macro - you single-handedly saved HOURS of research, in excess of the intial research.

    Thanks again,

    Brandon

  7. #7
    Registered User
    Join Date
    10-12-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2007 to 2003 VBA Compatability - Modifying Coding to comply with 2003 Inter

    snb,

    Thanks for the code recommendation - this also worked well with the pre-existing code. I really appreciate you taking the time to analyze my miscoding.

    Thanks,
    Brandon

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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