#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default ActiveSheet

Hi,
I've set up a macro to open each of the individual cost
centres within my company,extract specified data to a
master file, and then close the individual cost centre
file again. My cost centres are set in a list in cells A1
to A145. When I reach the last cost centre on the list
(which is always named "SC.rpt") I would like to perform a
slightly different routine. I would like the macro to
either recognise that the file is the last in the list or
recognise the file name if that file happens to be open. I
was trying to use an "If" statement along the lines of ;

If ActiveSheet = "C:\My Documents\SC.rpt" Then

Any help appreciated or suggestions on better ways to
proceed.

Thanks
Graham


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
Can't get ActiveSheet to work... [email protected] Excel Discussion (Misc queries) 2 August 16th 07 06:12 PM
ActiveCell or ActiveSheet Launchnet Excel Worksheet Functions 1 July 20th 07 07:46 PM
ActiveSheet.Name? Andrew Stedman Excel Programming 5 July 30th 03 01:17 PM
ActiveSheet Ron de Bruin Excel Programming 0 July 29th 03 04:59 PM
ActiveSheet.Paste error Ron de Bruin Excel Programming 0 July 25th 03 12:39 PM


All times are GMT +1. The time now is 04:08 PM.

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"