LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Workbook references

When I refer to cells through VBA usually I use the
following syntax without including the .xls extension:
Workbooks("myworkbook").Worksheets("mysheet").cell s(1,1)

Two times I have gotten an error that I was able to
resolve by adding in the .xls extension to all of my
references.
Workbooks("myworkbook.xls").Worksheets("mysheet"). cells
(1,1)

One time it was on my computer that had run that
particular macro and file many times before. Today a
coworker had a problem running another macro that I and
several other of my coworkers had no problems running.

I know that I could go into all my macros and add in
the .xls extension but I would still like to understand
what is causing this. Does anyone know why? Is it a
setting within excel or something that another file that
may be open is causing?

thanks,

Murray Williams

 
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
Index and References within a workbook Curtis Excel Worksheet Functions 4 November 17th 09 10:06 PM
workbook references Russell Hampton Excel Worksheet Functions 2 November 26th 08 07:06 PM
External Workbook References and Functions JMSatMetro Excel Discussion (Misc queries) 1 November 1st 07 09:51 PM
Relative workbook references? [email protected] Excel Worksheet Functions 0 February 20th 07 05:44 PM
Question for Experts: Opening workbook with workbook references Chris Excel Programming 0 September 11th 03 07:05 PM


All times are GMT +1. The time now is 03:39 PM.

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

About Us

"It's about Microsoft Excel"