Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel4v behaving differently in Excel2007...

I have a 10+ year old add-in (still using Excel4v) that is fairly
complex.
Everything seems to work fine in Excel2007 except for a piece of logic
that
asks for the last cell in a sheet -

Excel4v(xlcSelectLastCell, &xRes, 0);
Excel4v(xlFree, 0, 1, xRes);
Excel4v(xlfActiveCell &xRes. 0);
returned xRes is of type error where in previous versions of Excel it
was a range

note that the error is returned only when this logic is executing
after
using xlcSelect (anchor column) then xlcInsert to insert a new
column. If I
haven't inserted a new column then the xlfActiveCell in the logic
above does
give me a valid range.

any ideas why my insert is messing with my last cell?

Thanks!

-- Danielle
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Excel4v behaving differently in Excel2007...

I know nothing about developing XLLs but I think there were changes in the
SDK for Excel 2007 due to the increase in rows to 1,048,576 and columns to
65,536.

You might install the SDK and see if it provides any clues:

http://www.microsoft.com/downloads/d...displaylang=en

--
Jim
"dmsc33" wrote in message
...
|I have a 10+ year old add-in (still using Excel4v) that is fairly
| complex.
| Everything seems to work fine in Excel2007 except for a piece of logic
| that
| asks for the last cell in a sheet -
|
| Excel4v(xlcSelectLastCell, &xRes, 0);
| Excel4v(xlFree, 0, 1, xRes);
| Excel4v(xlfActiveCell &xRes. 0);
| returned xRes is of type error where in previous versions of Excel it
| was a range
|
| note that the error is returned only when this logic is executing
| after
| using xlcSelect (anchor column) then xlcInsert to insert a new
| column. If I
| haven't inserted a new column then the xlfActiveCell in the logic
| above does
| give me a valid range.
|
| any ideas why my insert is messing with my last cell?
|
| Thanks!
|
| -- Danielle


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Function behaving differently in different spreadsheets Anchor Excel Worksheet Functions 1 November 19th 09 08:55 AM
Workbook_BeforeSave not behaving as expected dq Excel Programming 1 May 13th 07 07:11 PM
Cursor not behaving southwood Excel Discussion (Misc queries) 3 July 16th 06 01:37 AM
SUM() function not behaving jeff Excel Programming 6 December 23rd 04 04:57 PM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"