Nov 27, 2002 #1 TimGoff Technical User Jul 16, 2002 166 GB Hi, I have Excel 95 and XP on my desktop. When I create a Excel object in my code using... Set objExcel = CreateObject("Excel.Application" ...is fires up 95 rather than XP. How do I change it to XP? Thanks in advance, Tim
Hi, I have Excel 95 and XP on my desktop. When I create a Excel object in my code using... Set objExcel = CreateObject("Excel.Application" ...is fires up 95 rather than XP. How do I change it to XP? Thanks in advance, Tim
Nov 27, 2002 #2 RobBroekhuis Technical User Oct 15, 2001 1,971 US I'm still on 2000, so my VBA help doesn't go far enough - but you should be able to do something like: Set objExcel = CreateObject("Excel.Application.9" (I think that particular one starts up Excel 2000). Check your VBA help, topic "OLE Programmatic Identifiers" Rob Upvote 0 Downvote
I'm still on 2000, so my VBA help doesn't go far enough - but you should be able to do something like: Set objExcel = CreateObject("Excel.Application.9" (I think that particular one starts up Excel 2000). Check your VBA help, topic "OLE Programmatic Identifiers" Rob
Nov 27, 2002 Thread starter #3 TimGoff Technical User Jul 16, 2002 166 GB Works a treat - thanks Rob For reference Excel XP is Excel.Application.10 - which makes sense really Upvote 0 Downvote