Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Compile error: Method or data member not found

7/21/2007

Thank you in advance for your assistance.

I have a two computer network. Files from Computer #1 are backed up to Computer #2.
On both computers I'm running XP Pro, with Office 2003. Excel on Computer#1 has 2 toolbars with macro buttons one for formatting routines I use frequently, the other has macro buttons that I've assigned macros that open workbooks on computer # 1 in the FILES folder. I need to use computer # 2 regularly. Excel on it has the same two toolbars. I want to open workbooks on computer #1 to avoid problems with updating(Do I update #2 to #1 or #1 to #2, in other words).

I've created a new personal.xls called, no2.xls, it's stored in the Office11\XLStart folder. The formatting macros work fine on #2. I've recorded the Workbook opening macros so that the VBA would be correct. However, when I click a workbook button on #2 I get this error. Compile error: Method or data member not found. workbooks.open filename: _ is always highlighted by the debugger. and always the word open. This is a sample macro. I've use it with and without the ChDir statement. no change. I have re-recorded every workbook macro hoping to solve this, and Goggled for an answer
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sub BUDGET2007()
'
' BUDGET2007 Macro
' Macro recorded 7/21/2007 by Big Bob Brazoo
'

'
ChDir "\\Felmore-15e49b7\FILES (F)\FILES\$$$\CORE"
Workbooks.Open Filename:="\\Felmore-15e49b7\FILES (F)\FILES\$$$\CORE\BUDGET2007.XLS", UpdateLinks:=0 [I would like to update links, but doing this produced an error also]
End Sub
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Computer #1 is named Felmore, #2 is Robert. A pseudonym of mine has been Bob Felmore Quality Used Cars and Trinkets. Big Bob Brazoo is another pseudonym.
Why does the macro keep erroring out? How should it be written?
Thank you once again for your assistance

Brian Day
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM


All times are GMT +1. The time now is 04:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"