LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
have_a_cup
 
Posts: n/a
Default Constant? in VBA


I have a macro I need to run daily on anywhere from 5-20 excel
reports...I've pasted the code below...the code fails out at portion
i've bolded and underlined below, and my question is:

What do I need to do, syntax wise, to make this happen regardless of
the name of the workbook....all the workbooks would be named RBA w/ a
numeral extension...

Sheets("Current Rules - 1").Select
ActiveSheet.Shapes("Picture 1").Select
Selection.Cut
Rows("1:4").Select
Range("BC1").Activate
Selection.Delete Shift:=xlUp
ActiveWorkbook.Save
Sheets("Current Rules - 1").Select
Sheets("Current Rules - 1").Copy
ActiveWindow.WindowState = xlNormal
With ActiveWindow
.Top = 105.25
.Left = -5.75
End With
*_Windows(\"rba_11.xls\").Activate_* With
ActiveWindow
.Top = 22
.Left = -76.25
End With
ActiveWindow.Close


--
have_a_cup
------------------------------------------------------------------------
have_a_cup's Profile: http://www.excelforum.com/member.php...o&userid=35394
View this thread: http://www.excelforum.com/showthread...hreadid=551672

 
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
Find data in table with to set of constant values Engineer Excel Worksheet Functions 4 May 26th 06 08:42 AM
How to create a constant total column in Excel? james9662 Excel Worksheet Functions 1 April 25th 06 08:31 PM
Build an array constant with DATE function CliffD Excel Worksheet Functions 2 April 11th 06 02:51 PM
How to average one constant # to variable #s? A1:A2 A1:A3 A1:A4 Colfax Excel Worksheet Functions 1 March 2nd 06 02:49 AM
Employing constant arrays to limit nested IF statements. Richard-44 Excel Worksheet Functions 2 January 6th 05 02:19 AM


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