Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activesheet < Sheets("Name")


Hello guys, can I get some help with macros?

I am trying to write a line that says

If activesheet < Sheets("blahblah") then
exit sub

But of course, that didn't work. What should be the correct code?

Also, sometimes when show the user an input box asking them to typ
something then select OK or Cancel, when the users try to move the box
the box doesn't refresh and their entire screen ends up with the shado
of the box; like a trail of the message box. Is there a way t
eliminate that?

Thanks

--
Etrnal16
-----------------------------------------------------------------------
Etrnal168's Profile: http://www.excelforum.com/member.php...fo&userid=2513
View this thread: http://www.excelforum.com/showthread.php?threadid=38700

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Activesheet < Sheets("Name")

On the first

If Activesheet.Name = "blahblahblah" Then

On the second, did you turn ScreenUpdating off before the Inputbox?


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Etrnal168" wrote
in message ...

Hello guys, can I get some help with macros?

I am trying to write a line that says

If activesheet < Sheets("blahblah") then
exit sub

But of course, that didn't work. What should be the correct code?

Also, sometimes when show the user an input box asking them to type
something then select OK or Cancel, when the users try to move the box,
the box doesn't refresh and their entire screen ends up with the shadow
of the box; like a trail of the message box. Is there a way to
eliminate that?

Thanks!


--
Etrnal168
------------------------------------------------------------------------
Etrnal168's Profile:

http://www.excelforum.com/member.php...o&userid=25135
View this thread: http://www.excelforum.com/showthread...hreadid=387005



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Activesheet < Sheets("Name")

If activesheet.name < Sheets("blahblah").name then

The shadow can be removed by turning the screen updating back on just prior
to the input box and back off just after the input box. You need to ensure
that you have not moved your cursor or changed sheets to do this... otherwise
the entire screen will change at the inputbox.
--
HTH...

Jim Thomlinson


"Etrnal168" wrote:


Hello guys, can I get some help with macros?

I am trying to write a line that says

If activesheet < Sheets("blahblah") then
exit sub

But of course, that didn't work. What should be the correct code?

Also, sometimes when show the user an input box asking them to type
something then select OK or Cancel, when the users try to move the box,
the box doesn't refresh and their entire screen ends up with the shadow
of the box; like a trail of the message box. Is there a way to
eliminate that?

Thanks!


--
Etrnal168
------------------------------------------------------------------------
Etrnal168's Profile: http://www.excelforum.com/member.php...o&userid=25135
View this thread: http://www.excelforum.com/showthread...hreadid=387005


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activesheet < Sheets("Name")


can someone help

--
Etrnal16
-----------------------------------------------------------------------
Etrnal168's Profile: http://www.excelforum.com/member.php...fo&userid=2513
View this thread: http://www.excelforum.com/showthread.php?threadid=38700

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activesheet < Sheets("Name")


Wow, great.

Thank you very much Jim and Bob for the help! Appreciate it.

-Thomas


--
Etrnal168
------------------------------------------------------------------------
Etrnal168's Profile: http://www.excelforum.com/member.php...o&userid=25135
View this thread: http://www.excelforum.com/showthread...hreadid=387005

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
"Count" and "List" functions across sheets Meg Excel Worksheet Functions 0 October 14th 08 02:11 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
ActiveSheet.CircularReference.Address loses "Set" EagleOne Excel Discussion (Misc queries) 2 August 29th 06 07:01 PM
Help Spreadsheet1.ActiveSheet.Range("B1").LoadText debugging qa4ever Charts and Charting in Excel 0 January 2nd 06 09:52 PM
How to change the ActiveSheet tab ("Plan1") Paulo de Arruda Borelli[_2_] Excel Programming 2 September 13th 04 03:55 AM


All times are GMT +1. The time now is 03:30 AM.

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"