首页 \ 问答 \ 如何使单元格颜色作为填充颜色,这是通过MS Excel 2010中的条件格式化 - VBA?(How to make cell color as fill color which is done by conditional formatting in MS Excel 2010 - VBA?)

如何使单元格颜色作为填充颜色,这是通过MS Excel 2010中的条件格式化 - VBA?(How to make cell color as fill color which is done by conditional formatting in MS Excel 2010 - VBA?)

我研究了很多,发现只有一些脚本。 我需要Microsoft Excel 2010中的帮助。

我有一个软件生成的Excel表格。 它具有使用条件格式设置的单元格颜色,我希望该颜色像单元格的填充颜色一样永久。 如何在MS Excel 2010中实现这一目标。


I have researched a lot and found only some scripts. I need assistance in Microsoft Excel 2010.

I have a software generated Excel sheet. It has cell colors which are set using conditional formatting, I want that color to be permanent like fill color of the cell. How this can be achieved in MS Excel 2010.


原文:https://stackoverflow.com/questions/33590838
更新时间:2023-03-18 15:03

最满意答案

在存储过程中添加了一行,以便从输出表中进行简单的选择,以欺骗L2S模式生成器。 重新生成模式,然后从proc中删除该行。 不知何故,存储过程中的数据类型没有直接转换,因为使用select语句进行了一些修改,我能够使它正常工作。

似乎是VS2k8和VS2k10之间的Linq To Sql元数据解释差异。


Added a line in the stored procedure to do a simple select from the output table to trick the L2S schema generator. Regenerated the schema, then removed the line from the proc. Somehow the data types from the stored procedure didn't translate directly over so, with some monkeying with the select statement, I was able to get it to work properly.

Appears to be a Linq To Sql metadata interpretation difference between VS2k8 and VS2k10.

相关问答

更多
  • 有趣; 这是我以前在使用IDataReader时遇到的一个问题,这就是为什么我现在宗教地消耗所有表(即使我只希望有一个表) - 例如,如果我只希望有一个表,如: while (reader.Read()) { // read data from first table } // read to end of stream while (reader.NextResult()) { } 问题在于,当你提出这个错误时,错误进入了TDS; 所以如果你在SELECT之后提 ...
  • 您可以将存储过程拖到设计器上并使用它,就像您在其他存储过程中看到的一样。 试着澄清你遇到的问题。 参数是否传递给数据库? 将分析器附加到您的SQL Server实例并跟踪该命令 。 您将立即能够看到是否有任何内容传递到您的存储过程。 从SQL Management Studio直接测试您的存储过程。 它工作吗? 假设你的SQL工作, 记录你发送的命令 。 LINQ-to-SQL可以轻松输出它发送的每个命令。 如果命令如预期那么您的存储过程是可疑的。 如果命令不符合预期,那么您的C#可能会被怀疑。 调试LIN ...
  • ExecuteNonQuery将返回受INSERT,UPDATE或DELETE操作影响的行数,而不是存储过程的返回值。 如果它在过去工作,您的查询是否有可能修改数据? 要获取存储过程的返回值,请使用ParameterDirection.ReturnValue向命令添加参数。 在调用ExecuteNonQuery()之后,将使用存储过程的返回值填充该参数。 ExecuteNonQuery will return the number of rows affected by an INSERT, UPDATE ...
  • 我会尝试重建DBML文件,可能是模型已经改变,LINQ在尝试将新数据放入旧模型时感到困惑。 I would try rebuilding the DBML file, it may be that the model has changed and LINQ is getting confused trying to put new data into an old model.
  • 顺便说一句,您应该检查@@identity是否是您需要的而不是scope_identity 。 如果它是您需要的,那么它仍然可以在调用存储过程中访问。 CREATE PROCEDURE spMyMain AS BEGIN DECLARE @NewID INT; EXEC spMyInsert 'TEST'; SET @NewID = @@IDENTITY SELECT @NewID AS '@NewID' END 如果使用scope_identity并且不想使用输 ...
  • 我能够访问数据,下面是我遵循的方法 存储过程: CREATE PROCEDURE [dbo].[DemoSP] AS BEGIN DECLARE @Temp1 TABLE ( DocumentID NVARCHAR(256), DocumentName VARCHAR(100) ) DECLARE @Temp2 TABLE ( DocumentID NVARCHAR(256) ) ...
  • 这是垃圾收集的丑陋一面:开发人员倾向于认为他们不再需要担心释放内存。 但这并不完全正确! 某些类实例必须是Disposed(因为它在.Net中调用)。 实际上,实现IDisposable每个对象都必须由开发人员处理其内存周期。 流是一个很好的例子。 流是一次性的,它们通常携带更大量的数据(大于简单的字符串)。 想象一下,您每5秒处理一个2KB流的服务。 那不太对劲? 比方说,它是一个小型XML。 但是如果你不处理它会发生什么? 好吧,你当然可以自己做数学,但我会给你结果:~33.7 MB未使用的垃圾。 底线 ...
  • 您可能正在查看错误列表窗口。 我并不经常使用C ++项目。 转到输出窗口并稍微查看一下,你应该能够双击会将你带到相关类型的那一行。 搜索: error输出窗口内部的: error对我来说非常普遍,以及: fatal地找到错误的来源。 另外,如果您有C ++键盘快捷键设置,您可以继续按F4键进入错误列表。 重置为默认的C ++键盘映射: Options -> Environment -> Keyboard然后将键盘映射重置为: Visual C++ 6 。 You're probably looking in ...
  • 在存储过程中添加了一行,以便从输出表中进行简单的选择,以欺骗L2S模式生成器。 重新生成模式,然后从proc中删除该行。 不知何故,存储过程中的数据类型没有直接转换,因为使用select语句进行了一些修改,我能够使它正常工作。 似乎是VS2k8和VS2k10之间的Linq To Sql元数据解释差异。 Added a line in the stored procedure to do a simple select from the output table to trick the L2S schema ...
  • 这实际上并不是LINQ to SQL的限制,而是SQL Server的限制,它不能总是告诉客户端当包含临时表,游标或动态SQL时实际运行它时返回类型是什么。 因为使用无效参数运行它可能是灾难性的,它不会尝试。 您可以使用设计器手动设置它,或者如果绝对可以使用无效数据运行存储过程(即它纯粹是被动的),那么您可以将SET FMTOPT OFF添加到存储过程的开头。 This is not actually a limitation of LINQ to SQL but rather of SQL Server ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)