Time Sheet Error
Feb 20, 2009
i have a time sheet that i just , was testing times and enter the time 02:00 pm to 10:00 pm when this is done 5 times for five days the HRS are ok = 40 but in my cell for over time witch should be 0:00 has ############################################ in it.
heres my codes, it only dos it on that time fram, if it go in to overtime its ok then. if i make it 6 days and i try 4 day at 2 to 10 and 1 day at any other time and its ok all works, why do 5 days of 2 to 10 do thsi and can it be fixed?
["Formula"]
'column "W"
=IF(T34-S34+V34-U34
View 9 Replies
ADVERTISEMENT
Dec 7, 2006
I'am trying to send a single worksheet by copying it out of workbook and saving it, and after sending I want to delete the temporary file. But I get a Error message: 'Run-time error 438: 'Object doesn't support this property or method
Sub SendWeekrapport()
Dim wb As Workbook
Dim addr As Variant
Dim bestand As String
Call SelectWeekrap
addr = Array("myname@mycompany.com")
Application. ScreenUpdating = False
ActiveSheet.Copy
Set wb = ActiveWorkbook
With wb
.SaveAs Range("AG3").Value & "bestand" & Range("b2").Value & ".xls" 'amend to suit
.SendMail addr, " Attached Timesheet for " & Range("B2").Value
.ChangeFileAccess xlReadOnly.............
View 5 Replies
View Related
Nov 20, 2009
Run Time Error 1004 when selecting range on another sheet using a command button. I have created a command button that plays the following macro.
View 2 Replies
View Related
Aug 27, 2009
Basically my code is bombing at the red highlighted code. Error: "Run-time error '1004': Copy method of Worksheet class failed"
Sheet "Blank Form" is a hidden sheet. Can I alter the red section of code to work while being a hidden sheet? I tried a few variations but nothing seems to work..
View 5 Replies
View Related
Oct 8, 2008
I have written a Excel (2003) that searches a worksheet for a string in any cell. If the string is not found, it uses the 'On Error GoTo' command to jump to a given label. It works fine on the first string not found. When it searches for the next non-existent string, it fails with:
'Run-time error '91':
Object variable or With block variable not set'
Do I have to clear a buffer after each cells.find search?
My
View 7 Replies
View Related
Oct 10, 2006
I'm not sure why this is happening, but every other time I run this one specific macro, I get a "Run-time error '1004': Paste method of Worksheet class failed". I even tried running this macro, then running a different one, then running this again, but I still got the error every other time.
Every time I get the error, it highlights this line of
Sheets("Regenerate Request").Paste
This is all of the code up to where I get the error:
Sub YesRegen()
' after user has hit Yes on the RegenerateRequest macro, this posts the new request to
' the log, generates the new file and attaches it to an email
Application.Run "LogUnprotect"
Range(Range("A" & ActiveCell.Row), Range("K" & ActiveCell.Row)).Copy
'Selection.Copy
Sheets("Regenerate Request").Activate
Application.Run "RegenFormUnprotect"
Range("A40:K40").Select
Range("A40").Activate
Sheets("Regenerate Request").Paste
View 10 Replies
View Related
Mar 5, 2013
I have a relatively complex report that I work with and a worksheet is no longer required. I have deleted the worksheet and reference to it hwoever when running the macro to pull all the data, it gets to the summary of all the data and i get the Run Time Error 1004 Application-defined or object-defined error pop up. ON reviewing it, it is on this line ActiveCell.Offset(0, 0).Range("a1:a" & Range_Height).Select of the below code...
VB:
Sub GetRangeName()
Sheets("TOTAL").Select
[Code].....
use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window.
View 1 Replies
View Related
Apr 26, 2009
I have a simple function below to put in different forumlas in different cells to get stock quotes. When I run this I get runtime error 1004 application-defined or object-defined error. The first formula goes through but vba chokes on the next formula: ActiveCell.Offset(I - 1, 4).Formula = username
View 10 Replies
View Related
Aug 12, 2009
Run-time error '1004' Application-defined or object-defined error. I am trying to use this
View 2 Replies
View Related
Oct 4, 2009
I was trying to use the below code
View 4 Replies
View Related
Aug 17, 2008
For some reason my form won't open when the workbook is opened. I get an error message "run time error '424' object required" (which happens when I have Form1.show in the BOTH workbook_open event and the userform_initialize event (oops)). When I removed form1.show from the userform_initialize I don't get an error but I also get no form. I recall having this issue before but I can't recall how to fix it.
Can I call the userform_initialize event from the workbook open event to get around this successfully and properly?
View 9 Replies
View Related
Dec 4, 2009
I keep getting a Run Time Error 1004 (Application Defined or Object Defined Error) when my sub reaches this line:
ActiveCell.Formula = "=SUM(D222,D224,D226,D227,D229,...)"
In the actual line of code the "..." above is another 20-30 or so cells in column "D". Probably no more than 150-170 characters in the line.
If I remove half of the cell range names it works, but I need all of the cell ranges for the equation.
View 9 Replies
View Related
Jul 11, 2014
A client buys 500 minutes of my time. In one week I spend 340 minutes on the account. I'd like a column to show Time purchased (say 500 Minutes) Time spent and a final section showing time left (but showing negative values in red)
I hope I've explained this ok but here is an illustration of what I'm trying to achieve in Excel 2011.
[URL] ...........
View 2 Replies
View Related
Jun 19, 2014
I have a userform that time stamps on my userform as soon as i open the form, is there a way that when I submit, that the amount of time that I was on the call to be put in my column on my worksheet as minutes?
View 2 Replies
View Related
Mar 13, 2008
I found a formula for calculating time in the HH:MM AM/PM
=IF(B1<A1,B1+1,B1)-A1
This formula was to give me total hours in the cell for which it is entered, and cell format for the formula was in military format.
I cannot find this post. The formula worked in OpenOffice Calc program, but when it came to converting to excel, I came up with #value!
I want to enter the time in 12 hour format and using am/pm to designate. I am making it for someone to make work schedules with and they do not know military time.
View 11 Replies
View Related
Aug 12, 2009
I am making a time sheet for work. It should be very simple but cant get it to work. I want time in, time out, lunch column, and Total. I don't want a lunch in and a lunch out though just a section where I can put my time in :30 minuets :45 or what ever. I also want it to work. on a 12 hour clock AM/PM .
Here are my column's
B2 Is Time In
C2 is Time out
D2 is Lunch time ( decimal ? )
E2 is the TOTAL with lunch deducted.
View 9 Replies
View Related
Oct 21, 2008
run time error 91 ...
View 14 Replies
View Related
Nov 12, 2008
I have the following code in a macro and when it is run I get a Run Time Error 438 Object doesn't support this property or method. This occurs at the first occurrance of the destination/source.
View 5 Replies
View Related
Feb 26, 2009
I have the main form completed and everything appears to be in order. So I made a button on the first sheet that simply calls for the main form to be shown. However, every time I click it, I get the run time error 424 object needed thing. I don't understand because the button is calling the form and the names are all correct. When I click debug, it takes me to the small code for the start button. Below are the codes for the start button and the main form.
View 10 Replies
View Related
Dec 11, 2009
I have a line of code to enter a date on a spreadsheet from a user form:
View 2 Replies
View Related
Jan 25, 2010
Getting a run time '424' error with following code (object not defined). Not sure if I have it set up correctly.
View 6 Replies
View Related
May 4, 2007
I am getting Run-time error '91':
Object variable or With Block variable not set
In my mind everything checks out, but I am still very new to all this.
Here is the
'Shifts cells to make space for inserted VFD
Dim CheckBoxes As Integer
Dim UpLeft
Dim LowRight
Dim CountCells As Integer
Dim MoveTo As Range
View 9 Replies
View Related
Sep 10, 2007
I'm gathering and ordering data. It's in the biotech field so I have to work with a lot of reaction formulae and compound abbreviations. Alas those are not standardized. So I have gathered all the compounds used by different organisms and standardized their abberviations and I want to replace the abbreviations used in the reaction formulae of the organisms with the standardized abbreviations so I can compare the formula with each other.
This resulted in a list of formulae, and a list of 2 columns, 1 the old abbreviations and the other the new abbreviations. I wrote a macro to pick an abbreviation out of the old abbr column and find it in the formula list. Then the old abbreviation should be replaced with the new abbreviation.
I got it working but the problem is that some abbreviations are longer than others and thus the smaller ones may resemble letter combinations in the larger ones. This can easily be solved by sorting the abbreviation list so that the largest abbreviations are on top and will be checked first. However, after I did this the macro didn't function any more. I have no clue what to do.
Sub ReplaceAbbrBoroWithGeneral() ...
View 9 Replies
View Related
Jun 25, 2008
I am getting a run time error and highlighting this section of code.
The entire code I am using is below. This has worked fine on my maching
now trying to use it on another exact machine I am getting this error.
The way the code works..
It navigates to a webpage that allows the user to download the data which is called
DownloadNCPartListServlet.
Windows("DownloadNCPartListServlet").Activate
I think I may need to tweek the .xls file extention properties. What do you think?
Public Sub SKPIUPDATE()
Dim QPR
Dim lnk
Dim frm
Dim start
Dim fin
Dim drp1
Dim drp2
Dim src1
Dim NAMC As Integer
' This macro will automatically open and download the TMMK-VEH daily scrap
'and store the file in the same directory
Set QPR = CreateObject("InternetExplorer.application")
QPR.Visible = True
View 9 Replies
View Related
Jul 27, 2008
I'm using the code
'Changes labels from zip code entry
Private Sub Textbillingzip_change()
Label42.Caption = Sheets("lists").Columns(10).Find(Textbillingzip.Value).Offset(0, 1).Value
Label43.Caption = Sheets("lists").Columns(10).Find(Textbillingzip.Value).Offset(0, 2).Value
End Sub
Private Sub Textsetupzip_change()
Label44.Caption = Sheets("lists").Columns(10).Find(Textsetupzip.Value).Offset(0, 1).Value
Label45.Caption = Sheets("lists").Columns(10).Find(Textsetupzip.Value).Offset(0, 2).Value
Label46.Caption = "Zone " & Sheets("lists").Columns(10).Find(Textsetupzip.Value).Offset(0, 3).Value
End Sub
I would like to have some error message pop up (or something else) rather than the current Run Time '91' error when the imput from either textbox is not found on the sheet "Lists"
View 9 Replies
View Related
Jul 31, 2009
I've written this macro to get data from a .csv and import into my spreadsheet however I get an intermittent "400" error, when I get the msg it says "method 'range' of object' _global failed".
Sub get_confirm_file_from_inbox()
Dim strPath As String
Dim strFile As String
Dim wbname As String
On Error GoTo Errorcatch
wbname = ActiveWorkbook.Name
strPath = "C:xxxManageCentralinbox"
strFile = Dir(strPath & "confirm*.csv")
Do While strFile ""
Workbooks(wbname).Activate
Sheets("Confirm_Data").Activate
Range("A3:BK").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.ClearContents...................
View 9 Replies
View Related
Mar 1, 2010
i have a problem in using vba and each time I run my project I get
Runtime error "9" Subscript out of range :'(
and the line of code in question is:
pr_pri.Worksheets("wspr_pri").Cells(13, 4).Activate
here's the entire code for the macro:
Sub prpri()
Dim i%, j%, k%
Dim iLRA As String, iLRN As String
Dim Y As Boolean, Ys As Boolean
Dim TabloA(), TabloN()
View 9 Replies
View Related
Dec 19, 2005
why my code fails at the point labelled (Run-Time 91 error). From reading the help I think it has something to do with using a set statement within a with...end with block, but I'm not sure.
Sub GetReport()
Dim ReportName As Variant
Dim Reportwkbk As Workbook, Dbasewkbk As Workbook
Dim Reportwksh As Worksheet, Dbasewksh As Worksheet
Dim AgentName As String, Extension As String
Dim dtmDateStart As Date, dtmDateStop As Date
Dim i As Integer, x As Integer
Dim FindAgent As Range
' On Error GoTo ErrorHandler
ReportName = Application. GetOpenFilename("Excel Files(*.xls),*.xls" _
, , "Select Report to Import")
If ReportName = False Then
MsgBox "No report was" & vbCrLf & "selected.", vbExclamation, _
"Report Error"
Else
With Application ...........................
View 9 Replies
View Related
Apr 14, 2006
I have a userform with several comboboxes. When I hit the "next" button, it goes to the next row down, but if that is empty, then I'll get an error of: Runtime error '380' Could not set the Value property. Invalid property value. Here's the basics of my code. I will be more than willing to email the file. It's too large to post.
Private Sub LoadRow()
txtTapeNumber.Text = ActiveCell.Value
txtCode.Text = ActiveCell. Offset(0, 1)
cboChannel.Value = ActiveCell.Offset(0, 2) <--error here
cboBrand.Value = ActiveCell.Offset(0, 3)
cboFormat.Value = ActiveCell.Offset(0, 4)
cboLength.Value = ActiveCell.Offset(0, 5)
cboCategory.Value = ActiveCell.Offset(0, 6)
cboVersion.Value = ActiveCell.Offset(0, 7)
txtTapeTitle.Text = ActiveCell.Offset(0, 10)
txtKeywords.Text = ActiveCell.Offset(0, 11)
etc...(more txt boxes)
Here is my next button code...
View 4 Replies
View Related
May 15, 2006
I am trying to print a form from a CommandButton. I am getting
'Run-time error 438
'Object doesn't support this property or method
With this code on the worksheet:
ActiveSheet.PageSetup.PrintArea = "PrintInv01"
Application.PrintOut ActivePrinter:="Auto HP DeskJet 895Cse on FILESERVER on Ne10:"
ActiveSheet.PageSetup.PrintArea = ""
Debug highlights the second line.
View 4 Replies
View Related