i am new in excel and i need help thanks.
create account payable with monthly new sheet(automatically will create the sheet)
problem is i like to add value of some cells in account balance the lines you see has problem .
i include the file and some pictures and nots i would be happy any one could help me thanks hassan
'=================================================
'enter date to account balance
Dim Xpay As Currency
Dim XPayNow As Currency
Dim XDelay As Currency
Dim XBankFee As Currency
Dim Xname As String
Dim Xfuc As String
Xname = strname
Worksheets(Xname).Select
'==========================================================================
'problem, i need help first of each mounth when new sheet of the mounth
'create it for account payable i need to entre on line in table3 of account balnce
'sheet under monthly account payable.
'this line is very importand
'1-by looking at this table i know which line has problem and i go to that month to fix it
'2-i know how much check i give and not been cash
'3- if there is problem with the date of check i will fix it
'4- i use it to balance my bank account and my cash money
'5- after 5 or more years by looking at this page i know where is the problem.
'===========================
'give data to each variable
'****problem, problem
'--------------------------------------
'Xpay = Range("J7") 'does not update but it record the new value any time
'XPayNow = Range("K7") ' you run the marco
'XDelay = Range("L7")
'XBankFee = Range("L15")
'--------------------------------------------
' Xpay = "=SUM('2013_01'!J7)" 'or XPay = "=(SUM(J7)" not good
'XPayNow = "=SUM('2013_01'!K7)"
'XDelay = "=SUM('2013_01'!L7)"
' XBankFee = "=SUM('2013_01'!L15)"
'-------------------------------------------------------
'Xpay = Range("J7").Value ' it work but when the amount in j7 change
' it does not change in balance sheet on column b
'row blong to that page
'---------------------------------------------------------
'==================================
'==========================================================================
Worksheets("Account Balance").Select
Worksheets("Account Balance").Range("A5").Select
If Worksheets("Account Balance").Range("A5").Value <> "" Then
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Select
Worksheets("Account Balance").Range("A5").End(X1Down).Select
Loop
Worksheets("Account Balance").Range("A5").End(X1Down).Select
End If
ActiveCell.Value = Xname
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = Xfuc
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = XPayNow
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = XDelay
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = XBankFee
Worksheets(Xname).Select
excel1.jpgExcel2.jpg
Bookmarks