数据导入不中继数据类型和单位 [英] Data Import not relaying data type and units

查看:67
本文介绍了数据导入不中继数据类型和单位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我将继续创建链接到从Excel导入的数据的visio形状。  我有一段时间成功的系统,但现在我已经更改了电子表格,并开始使用新的Visio文档,我得到的结果与相同的成员不同。

I am continuing to create visio shapes linked to data imported from Excel.  I've had a successful system for awhile, but now I've changed spreadsheets and started on a new Visio document and I'm getting different results with the same constituents.

My有问题的区域是Excel中的数值,附加了相应的自定义单位。  在此之前,我已经能够将这些vales导入Visio并导入单元。  我的自定义格式如下: #" gpm"。  所以
例如每个单元格读取26 gpm,5 gpm,10 gpm等等。现在,当我将这些值导入Visio时,它们默认为数值而不是字符串。  所以我在Visio中的值变成了26,5,10等等。在导入到Visio之后添加这些单元似乎没有实际的方法
。  我已尝试修改形状数据类型,以及修改"将数据链接到形状"中的列数据类型。我图表下的区域。  也不会将事后转换回来包含
" gpm"。  我尝试使用稍微不同的自定义单元在Excel中重新格式化我的表格仍无济于事。  我很遗憾为什么Visio会继续导入之前总是字符串的数字值。

My problematic area is numeric values in Excel with corresponding custom units attached.  Prior to now, I've been able to import these vales into Visio and the units import as well.  My custom format is as follows:  # "gpm".  So for example each cell reads 26 gpm, 5 gpm, 10 gpm, etc.  Now when I import these values into Visio, they default as a numeric value and not a string.  So my values in Visio turn into 26, 5, 10, etc.  There doesn't seem to be a practical way to add these units after importing into Visio.  I've tried modifying the Shape Data Type, as well as modifying the column data types in the "Link Data to Shapes" area under my chart.  Neither will postmortem convert the values back to include "gpm".  I've tried to reformat my table in Excel using a slightly different custom unit still to no avail.  I'm at a lost on why Visio continues to import numeric values where they were always strings before.

我在新旧Excel表格中所做的一切都完全相同。  格式化,自定义单元,一切。  我不知道Visio正在做什么,看起来它是Excel中数据类型的潜在问题,但我不能用b $ b来计算它。  有没有办法更改默认的Visio数据类型以进行导入。  我觉得如果我可以把它改成字符串而不是数字,在导入数据之前它会再次起作用。

Everything I've compared between my old and new Excel sheets is exactly the same.  The formatting, the custom unit, everything.  I have no idea what Visio is doing and it seems like it's an underlying problem with data types in Excel, but I can't figure it out.  Is there a way to change the default Visio data type for importing.  I feel like if I could change it to string, rather than number, PRIOR to importing the data it would work again.

推荐答案

好的,所以不知怎的,我已经在不知不觉中通过Excel中的一些未知格式解决了这个问题....

Ok, so somehow I've unknowingly solved that problem via some unknown formatting in Excel....

新问题: 正在删除旧形状数据,并链接新形状数据。   Visio毫无疑问是我用过的最繁琐的软件。

New problem:  Deleting old shape data, and linking new shape data.  Visio is without a doubt the most cumbersome software I've ever used.

我正在使用下面的宏删除旧的形状数据(基本上因为没有更好的方法):

I'm using the below macro to delete old shape data (basically because there's no better way):

删除旧数据后,形状数据框显示它实际上是空的,但文本仍显示在形状上。  新数据链接到Visio,当我将一行拖放到形状上时,旧数据就会停留在那里。  我刚刚在5分钟前工作了
....并且知道它不再适用了。

Once the old data is deleted, the shape data box shows it's in fact empty, but the text is still displayed on the shape.  The new data is linked into Visio, and when I drag and drop a row onto the shape, the old data just stays there.  I just had this working about 5 minutes ago....and know it won't work anymore.


这篇关于数据导入不中继数据类型和单位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆