Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Actions on certain Worksheets

Hi Grant,

for me your code works ok, only the sheets with "Server
Details at the end are processed.

Best regards

Wolf
-----Original Message-----
Hi

As you have probably guessed by now, I'm pretty much a

novice with VBA. I'm
still battling with this particular issue, attempting

run the following
function against all sheets that follow a particular

naming convention ie;
"Server 1 Server Details", "Server 2 Server Details".

The incremental
numbering sequence is not particularly relevant because

at some stage a
number might be skipped. What is relevant however is

that the first portion
of the sheet name will always be "Server " and the last

portion will always
be " Server Details".

This is where I am with my code at the moment (In my

uneducated mind, this
should do the trick - but seems to work on the current

sheet, irrespective
of the sheet name)

Sub LinkDetail()
Dim wksSheet As Worksheet
Dim strSheet As String
strSheet = "*Server Details"
For Each wksSheet In ThisWorkbook.Worksheets
If wksSheet.Name Like strSheet Then
Range("Y7").Formula = "=$A$6"
Range("Y8").Formula = "=$B$6"
Range("Y9").Formula = "=$Q$6"
Range("Y10").Formula = "=$C$6"
Range("Y11").Formula = "=$D$6"
Range("Y13").Formula = "=$E$6"
Range("U16").Formula = "=CONCATENATE(""Shows

CPU / IO / idle time
utilization (in ticks) since ASE was last started.

["",$J$6, "" microseconds
per tick]"")"
Range("W18").Formula = "=$G$6"
Range("AA18").Formula = "=$H$6"
Range("AE18").Formula = "=$I$6"
Range("U23").Formula = "=$K$6"
Range("Y23").Formula = "=$L$6"
Range("AC23").Formula = "=$M$6"
Range("U27").Formula = "=$N$6"
Range("Y27").Formula = "=$O$6"
Range("AC27").Formula = "=$P$6"
Range("AI9").Formula = "=$R$6"
Range("AJ9").Formula = "=$S$6"
End If
Next
End Sub

Hope someone can help. Thanks to those who have

responded thus far.

Many Thanks - Grant


.

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
unreadable content with no further actions Bing Excel Discussion (Misc queries) 0 November 7th 09 03:11 PM
Hep with Conditionals actions please. Mark Excel Worksheet Functions 2 February 8th 09 04:02 PM
Different actions on a pivotal value smaruzzi Excel Worksheet Functions 0 November 17th 06 10:29 PM
Repeat actions not working Ken G. Excel Discussion (Misc queries) 1 July 12th 06 07:54 AM
How to perform two actions ? morph000 Excel Worksheet Functions 5 January 22nd 06 02:13 AM


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

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"