08-01-2005 09:54 AM
08-01-2005 10:12 AM
08-01-2005 10:52 AM
@unclebump wrote:
Here is a spreadsheet object that reads the cell values. I made a quick modification to write to the activecell. I'm not sure if your error comes from not turning the data into a variant or your row and column cell selection. See if you can get the row/column selection to change the active cell, then you know the format works.
08-01-2005 11:04 AM
08-01-2005 11:45 AM
Maybe the download at this link will help.
http://support.microsoft.com/kb/q258187/
http://support.microsoft.com/default.aspx?scid=kb;EN-US;306022
Office Web components version 11. May have better documentation.
08-01-2005 12:58 PM - edited 08-01-2005 12:58 PM
Message Edited by Gary D on 08-01-2005 01:01 PM
08-01-2005 01:17 PM
08-01-2005 01:48 PM - edited 08-01-2005 01:48 PM
@unclebump wrote:
Variant data can be anything. All data types can be turned into variant data. It can be difficult when trying to convert from variant to an unknown data type. What happens if you try to convert to a single string. Maybe your cell reference isn't really a 2D range??
It works as expected with one cell. My range I'm trying to grab for the time being is just something simple like A1:B2. I wired a two dimensional array with a string type to it and I get a type mismatch when I run the program. I've initialized the array I'm wiring to the variant to data vi as a 2x2 array. Still I get a type mismatch. Like I said though, it works fine with one cell and the variant probe or indicator just shows: Value -> a1. Nothing about the other celss at all.
EDIT: It seems to be only taking cell 1. Even if I put in a 2-D range (either in A1:D4 format or as a Cell 1, Cell 2 deal) I get just a1. If I wire a single string to the variant to data vi it still works fine though I'm supposedly selecting a 2-D range. I think if I can find a way to select the proper range on the ActiveX MS Office Spreadsheet 9 object, that might fix my problem. But since I'm already at the range property, I don't know what else there is I can do.
Message Edited by Gary D on 08-01-2005 01:54 PM
08-01-2005 02:12 PM
08-01-2005 02:33 PM
@unclebump wrote:
Here is a range select option. It isn't using absolute addressing for some reason, I think there is a parameter for that.
I tried your select program and here's what I noticed on my computer. Whenever I run it, it selects a 3x3 area starting with the current cell. Whatever I put in the range it really doesn't matter.
Thanks for the help, I'm gonna keep trying but I feel I've stolen your day. This is really a frustrating problem because I can just dump the data into a table and be done with it, but that makes it much more difficult to use (no scrolling and difficult to navigate). Using the Excel interface would be much better for my purposes. Thanks again.
P.S. I'll still be checking the post for any other input. So don't be bashful people.