Paul, that was the fix, thank you very much for looking into this! Scott On Thursday, May 15, 2014 4:44:24 AM UTC-7, Paul Schreiner wrote:
> For: > Workbooks("ESS CentreVu Stats Half").Worksheets("Mel").Range("b3").Value > > Is the workbook "ESS CentreVu Stats Half" open? > > I tested code with my workbook. > It seems that the file extension must be included. > > In my case: > Workbooks("Ora_RMS_Flags_Master.xlsb").Sheets("Ora_PN").Range("B3").Value > works but: > Workbooks("Ora_RMS_Flags_Master").Sheets("Ora_PN").Range("B3").Value > > Does not... > > so it looks like you simply need to include the file extension. > > *Paul* > ----------------------------------------- > > > > > > > > *“Do all the good you can,By all the means you can,In all the ways you > can,In all the places you can,At all the times you can,To all the people > you can,As long as ever you can.” - John Wesley* > ----------------------------------------- > > *From:* Sabosis <scott...@henryschein.com <javascript:>> > *To:* excel-...@googlegroups.com <javascript:> > *Sent:* Wednesday, May 14, 2014 8:03 PM > *Subject:* $$Excel-Macros$$ Excel macro from 2003 no longer works in > Excel 2010 > > Hello- > > I am getting an error message on a certain line in my module that always > worked before switching to Office 2010. The line checks for a zero value in > a cell and will quit excel if the value is zero. If not zero then the code > continues. I am getting an error on this line though as we are switching > over to Office 2010. > > If Workbooks("ESS CentreVu Stats > Half").Worksheets("Mel").Range("b3").Value = 0 Then > Call CancelReport > End If > > Any idea what is causing this to error out? It is the first line that is > highlighted when i debug. > > Any help would be greatly appreciated. > > Thanks > > Scott > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to excel-macros...@googlegroups.com <javascript:>. > To post to this group, send email to excel-...@googlegroups.com<javascript:> > . > Visit this group at http://groups.google.com/group/excel-macros. > For more options, visit https://groups.google.com/d/optout. > > > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.