|
|||||||||||||||||||||
|
#1
|
|||
|
|||
|
Why doesn't this line work in 2007
The macro has this line of code and works well in Excel 2003. Can someone explain why this line stops the macro using 2007?
Code:
z = Workbooks("master").Worksheets("sheet1").Cells(Rows.Count, 2).End(xlUp).Row + 4
Thanks, Last edited by VBA Noob; 07-18-2008 at 06:08 PM. |
|
#5
|
|||
|
|||
|
shg:
Many thanks for your input. The code line ran fine in 2003 but failed/stopped in 2007. Seems you are correct, the addition of the file extension, in my case .xlsm allowed the code to work in 2007 similiar to 2003. While you say it's not a 2007 issue, I have to say that it appears 2007 requires file extensions and in earlier versions the extension is not mandatory. Thanks for you help. It made all the difference. Cliff |
![]() |
| Bookmarks |
New topics in Excel 2007 Help
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|