If statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Could you help me to use my worksheets in a VBA if
statements. I am getting an error when I try to this way

If activesheet = ("sheet") then
......
Else
......
....
Endif

How can I do this?

Thank You
 
Hi
may be something like
if Activesheet.name = "your_sheetname" then
....
 
how about
if activesheet=sheets("sheet1") then
do this
else
do that
end if
 
Thanks, that works

-----Original Message-----
Hi
may be something like
if Activesheet.name = "your_sheetname" then
....

--
Regards
Frank Kabel
Frankfurt, Germany



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top