找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
楼主: zt11zfx

★一个比UFO更好用的U8报表工具★【U8_Excel报表助手1.531】(1月19日更新)

    [复制链接]
发表于 2008-1-31 21:40:56 | 显示全部楼层
这么好的工具,当然要支持啦。
发表于 2008-2-2 10:30:17 | 显示全部楼层
下了试试看 谢谢了
发表于 2008-2-2 15:33:28 | 显示全部楼层
楼主真是雪中送炭啊!
发表于 2008-2-2 15:54:26 | 显示全部楼层
分析楼主的Excel中原代码,发现只能做财务方面的报表? 不能做供应链和物料需求等方面的报表?
不知是不是?
哪位有U861的数据辞典啊? 关于供应链方面的


Public QuShu As Object
Public MyODBC As Object
Public int加载标志 As Integer
Sub likaiEnd()
  On Error Resume Next
  Dim ctl As CommandBarControl
  Application.CommandBars("U8_Excel 自动报表助手").Delete
  For Each ctl In Application.CommandBars(1).Controls
    If ctl.Caption = "U8报表助手(&Z)" Then ctl.Delete
  Next ctl
  
    For Each ctl In Application.CommandBars("cell").Controls
    If ctl.Caption = "U8报表助手快捷菜单" Then ctl.Delete
   'If ctl.Caption = "U8报表助手(&Z)" Then ctl.Delete
   
  Next ctl
      For Each ctl In Application.CommandBars("cell").Controls
    If ctl.Caption = "重算选定区域(&D)" Then ctl.Delete
  Next ctl
      For Each ctl In Application.CommandBars("cell").Controls
    If ctl.Caption = "重算当前整表(&R)" Then ctl.Delete
  Next ctl
      For Each ctl In Application.CommandBars("cell").Controls
    If ctl.Caption = "联查明细账(&M)" Then ctl.Delete
  Next ctl
      For Each ctl In Application.CommandBars("cell").Controls
    If ctl.Caption = "结果另存为(&S)..." Then ctl.Delete
  Next ctl
  
End Sub






Sub sub设置连接参数()
    sub加载类库
    QuShu.sub设置连接参数
End Sub
Sub sub设置帐套年度()
    sub加载类库
    QuShu.sub设置帐套年度
End Sub
Sub sub关于()
    sub加载类库
    QuShu.sub关于
End Sub
Sub MingXiZhang()
sub加载类库
    QuShu.科目明细账
End Sub
Function ztl()
sub加载类库
    QuShu.test
ztl = 1
End Function

Sub sub加载类库()
If int加载标志 = 0 Then
    Shell "Regsvr32 /s  U8取数类_曾福星.dll"
    Set QuShu = CreateObject("U8取数类_曾福星.U8取数类")
    'Set MyODBC = CreateObject("U8取数类_曾福星.ODBC_ZFX")
    int加载标志 = 1
     sub增加函数库
End If
End Sub




Sub ReJiSuan()
sub加载类库
QuShu.重新计算整表
End Sub


Sub 初始化()
    QuShu.bln初始化
End Sub

Sub XuanDingReSuan()
sub加载类库
QuShu.重算选定单元
End Sub

Public Sub sub增加函数库()
On Error Resume Next
QuShu.sub增加函数库
End Sub

Function getCodeName(cCode As String) As String
QuShu.strCode = cCode

getCodeName = QuShu.取科目名称

End Function
Function MC(cCode As String) As String
    On Error Resume Next
    QuShu.strCode = cCode
    MC = QuShu.取科目名称
End Function

Sub sub退出()
    likaiEnd
End Sub
Function QC(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QC = Round(QuShu.dub借方期初 - QuShu.dub贷方期初, 2)

End Function
Function QCD(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QCD = Round(QuShu.dub贷方期初, 2)

End Function
Function QCJ(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QCJ = Round(QuShu.dub借方期初, 2)

End Function


Function NC(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    NC = Round(QuShu.dub借方年初 - QuShu.dub贷方年初, 2)

End Function
Function NCD(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    NCD = Round(QuShu.dub贷方年初, 2)

End Function
Function NCJ(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    NCJ = Round(QuShu.dub贷方年初, 2)

End Function

Function QM(cCode As String) As Double
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QM = Round(QuShu.dub借方期末 - QuShu.dub贷方期末, 2)

End Function
Function QMJ(cCode As String) As Double
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QMJ = Round(QuShu.dub借方期末, 2)

End Function
Function QMD(cCode As String) As Double
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    QMD = Round(QuShu.dub贷方期末, 2)

End Function

Function FS(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    FS = Round(QuShu.dub借方发生 - QuShu.dub贷方发生, 2)
End Function
Function FSJ(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    FSJ = Round(QuShu.dub借方发生, 2)
End Function

Function FSD(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    FSD = Round(QuShu.dub贷方发生, 2)
End Function

Function LFS(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    LFS = Round(QuShu.dub借方年累 - QuShu.dub贷方年累, 2)
End Function
Function LFSJ(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    LFSJ = Round(QuShu.dub借方年累, 2)
End Function

Function LFSD(cCode As String) As Double
On Error Resume Next
    QuShu.strCode = cCode
    QuShu.读写科目缓存
    LFSD = Round(QuShu.dub贷方年累, 2)
End Function
Function CFLJ(cCode As String) As Double
    If QuShu.余额重分类(cCode) Then CFLJ = Round(QuShu.dub重分类借方余额, 2)
   
End Function

Function CFLD(cCode As String) As Double
    If QuShu.余额重分类(cCode) Then CFLD = Round(QuShu.dub重分类贷方余额, 2)
End Function



Sub 缓存现金流()
    cCodeLst = "现金;库存现金;银行存款;其他货币资金;"
    QuShu.str现金流量科目列 = cCodeLst
    QuShu.sub缓存现金流量
    QuShu.求总现金流量
   
End Sub
Function ZXJLJ() As Double
    If QuShu.l = 0 Then 缓存现金流
    ZXJLJ = QuShu.dub借方流量总额
End Function
Function ZXJLD() As Double
    If QuShu.l = 0 Then 缓存现金流
    ZXJLD = QuShu.dub贷方流量总额
End Function
Function XJLJ(cCode As String) As Double
    If QuShu.l = 0 Then 缓存现金流
    QuShu.strCode = cCode
    QuShu.求现金流量
    XJLJ = QuShu.dub借方流量
End Function
Function XJLD(cCode As String) As Double
    If QuShu.l = 0 Then 缓存现金流
    QuShu.strCode = cCode
    QuShu.求现金流量
    XJLD = QuShu.dub贷方流量
End Function
Function QDM(cCode As String) As Double
    QDM = QuShu.fun名称取科目(cCode)
End Function

Function XJLR(cCode As String) As Double
    XJLR = XJLJ(cCode)
End Function


Function XJLC(cCode As String) As Double
    XJLC = XJLD(cCode)
End Function
Function XJZLC() As Double
    XJZLC = ZXJLD()
End Function

Function XJZLR() As Double
    XJZLR = ZXJLJ()
End Function
Sub sub保存实例()
    sub加载类库
    QuShu.sub保存实例
End Sub
发表于 2008-2-2 15:57:18 | 显示全部楼层
谢谢。。这个好东西啊 !!
发表于 2008-2-2 16:30:44 | 显示全部楼层
看了!!差不多,vba嘛
发表于 2008-2-3 12:57:49 | 显示全部楼层
这个东东实在好,谢谢楼主!
发表于 2008-2-3 13:30:41 | 显示全部楼层
不错的工具,下了试试看吧。
发表于 2008-2-3 13:49:42 | 显示全部楼层
很牛B的一个工具,可以把技术卖给用友或授权给用友啊。。
发表于 2008-2-3 14:15:18 | 显示全部楼层
很好的工具,继续支持,!!!!!!
发表于 2008-2-3 16:19:18 | 显示全部楼层
下来学习学习,看能不能改造成支持NC
发表于 2008-2-5 22:54:09 | 显示全部楼层
这么好的工具,看看
发表于 2008-2-7 22:15:11 | 显示全部楼层
感谢楼主,都有什么什么表呀
发表于 2008-2-8 10:49:40 | 显示全部楼层
kankan,xiexie
发表于 2008-2-11 17:26:17 | 显示全部楼层

看看看看看看看看看看

看看看看看看看看看看看看
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-11-24 13:27 , Processed in 0.051710 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表