|
-
Sep 5th, 2001, 02:12 AM
#1
Thread Starter
Lively Member
How do I check to see if a sheet is present?
Hi,
In excel 97, I need to check if a sheet called 'Template_Info' is present. If it isnt then a messagebox saying that is needed. if it is, then I have a procedure which I need to put afterwards which checks some values in the sheet.
Any help on this will be greatly appreciated.
Regards
Paul
-------------------------------------
ICQ: 44712087 (evenings only)
Email: [email protected]
-
Sep 5th, 2001, 03:42 AM
#2
-= B u g S l a y e r =-
VB Code:
Dim i As Integer
Dim bTemplInfSheetExist As Boolean
For i = 1 To Application.Sheets.Count
If Application.Sheets(i).Name = "Template_Info" Then
bTemplInfSheetExist = True
Exit For
End If
'MsgBox Application.Sheets(i).Name
Next i
something like that ?
-
Sep 5th, 2001, 04:09 AM
#3
Thread Starter
Lively Member
that works great! thanks a lot
btw.... if i wanted you for technical help, how much would you charge??
-------------------------------------
ICQ: 44712087 (evenings only)
Email: [email protected]
-
Sep 5th, 2001, 04:19 AM
#4
-
Sep 5th, 2001, 04:23 AM
#5
Thread Starter
Lively Member
well basically, ive been taken on as a modern apprentice by EDS. Im doing data manipulation with VBA in access and excel. Although Ive learnt basic VBA, theres still stuff I dont know..... so I need someone to ask for help.
I think ill just post questions here, as they seem to get answered very quickly
Thanks a lot
Paul
-------------------------------------
ICQ: 44712087 (evenings only)
Email: [email protected]
-
Sep 5th, 2001, 04:26 AM
#6
-= B u g S l a y e r =-
Yes, there are tons of people with good skills in here, and they do tend to compete in getting a fast and good solution for those who ask. Never seen any better forums
-
Sep 5th, 2001, 04:30 AM
#7
Thread Starter
Lively Member
dunno what laguages u know, but if you want something to do (lol) then heres a personsal request
http://www.vbforums.com/showthread.p...hreadid=101430
paul
-------------------------------------
ICQ: 44712087 (evenings only)
Email: [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|