LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Weird Happenings

I have an application with a bunch of dropdown controls and buttons
that run macros.

In a particular instance if i reset dropdown 1 to "New" it then sets
dropdown 2 to "New"

The issue is, that when the second dropdown2_change event runs a
different sheet in the workbook appears to be activated (though it
should not), on a closer look the sheet was not activated as the tab
for the original sheet is still selected, however now the 2nd sheets
information is displayed. But if i then click a different tab and
then click back everything looks normal (so the data did not get
written over)

Hopefully this example clears it up:

Adding the following code to the dropdown2_change fixes the issue but
its sloppy sloppy programming

Sub dropdown2_change()
'code happens
sheets("anothersheetinworkbook").activate
sheets("mainsheet").actiavte
End Sub

This is the one that produces the weird thing:

Sub dropdown2_change()
'code happens
sheets("anothersheetinworkbook").activate
sheets("mainsheet").actiavte
End Sub

Any ideas?
 
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
strange happenings with move/copy worksheet Don Excel Worksheet Functions 1 May 3rd 08 07:26 PM
Weird Macro Happenings Tsunami3169 Excel Programming 5 September 7th 07 12:43 AM
Wierd VBA happenings... LT Excel Discussion (Misc queries) 4 March 15th 07 02:10 PM
Strange Happenings Alan Excel Discussion (Misc queries) 7 June 20th 06 08:15 PM
Weird jhill New Users to Excel 1 August 10th 05 04:48 PM


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