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: 37
Default Excel 2007 - Dynamic sheet naming

Hello,

I am getting runtime error "1004: Application-defined or object-defined
error" with the fourth expression:

Workbooks.Open bestfile_name, UpdateLinks:=0 [no error]
ActiveWorkbook.Activate [no error]
Set bestfile = ActiveWorkbook [no error]
Set bestrange = bestfile.Sheets(best_sheet_name).Range(best_range_ name) [
[error 1004]

The variables are defined as follows:

- bestrange as Range
- bestfile As Workbook
- best_sheet_name, best_range_name As String

This expression was perfectly fine in Excel 2003.

I will appreciate any help in this respect.

--
Thanx & regards,
Asif
 
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
Dynamic Object Naming theSquirrel Excel Programming 1 January 27th 09 04:00 AM
Dynamic range naming in VB6.3 for Excel Paul Chapman Excel Programming 3 March 6th 05 03:00 AM
Dynamic Sheet Tab Naming rpgun[_2_] Excel Programming 0 October 19th 04 12:36 AM
Dynamic Sheet Tab Naming rpgun Excel Programming 1 October 19th 04 12:01 AM
Dynamic Range Naming JMay Excel Programming 4 December 9th 03 11:17 PM


All times are GMT +1. The time now is 03:31 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"