Results 1 to 6 of 6

Backwards compatibility issue between VB Excel 2010 -> 2003

Threaded View

  1. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Steve

    Are you sure this is a version issue?

    I can't see anything in the code that is version specific.

    I think the problem might be with FirstCol/FirstRow/LastCol/LastRow.

    FirstCol and LastCol should be column letters.

    Also, in a cell reference the column comes first then the row.

    Perhaps you could use Cells?
    .Range("H2:H" & pRow).Formula = "=VLOOKUP(A2,All_Parts!" & Cells(FirstRow, FirstCol).Address & ":" & Cells(LastRow, LastCol).Address & ",2,FALSE)"
    Last edited by Norie; 09-16-2013 at 08:39 PM.
    If posting code please use code tags, see here.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel VBA 2003 2010 Compatibility with ExportAsFixedFormat
    By Max_Taylor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-14-2012, 07:06 PM
  2. [SOLVED] Excel 2003 / 2010 compatibility
    By asgersax in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-30-2012, 10:46 AM
  3. Replies: 3
    Last Post: 10-05-2012, 11:10 AM
  4. Replies: 2
    Last Post: 08-16-2012, 07:31 PM
  5. [SOLVED] Backwards compatibility with Excel 2003 Calendar Control
    By Whiskey Tango Foxtrot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2006, 09:20 PM

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