#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userforms


Hi everyone,
Currently I have a userform which entitles people to search up a stree
number and name, and click on a command button ("search") which runs
macro extracting data frome sheet 1 to sheet 2, provided it matches th
criteria.

What I'm having trouble with is when you click search, the macro jump
between sheet 1 and sheet 2 several times running the filter. On shee
1, when you select it, I automatically make it to bring up userform1
and whenever the search finishes, userform1 remains open, but I want i
to close.
Now I have tried putting in userform1.hide at the end of the macro an
that doesn't help.

Is there any way to disable the the sheet1's code userform1.show unti
the macro finishes executing, or something similar? I only want it t
show up when you manually click the sheet, not when the macro accesse
it.

Thanks,

Andrew

--
carlito_198
-----------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...fo&userid=2139
View this thread: http://www.excelforum.com/showthread.php?threadid=46672

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userforms


Good morning Carlito_1985

You need tio use this command when you start the macro:

Application.ScreenUpdating=False

and make this the last line of your macro:

Application.ScreenUddating=True

This will stop the screen from flickering while the data is bein
retrieved, and it will also make the search process much quicker.

HTH

Dominic

--
dominic
-----------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893
View this thread: http://www.excelforum.com/showthread.php?threadid=46672

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userforms


Ahhhh, Brilliant!!
So easy yet so useful.
Much appreciated, worked perfectly. :)


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=466722

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
Help with Userforms Panagiotis Marantos Excel Discussion (Misc queries) 2 July 25th 06 04:26 PM
I need some help with userforms T.c.Goosen1977 Charts and Charting in Excel 0 June 30th 06 09:29 AM
Userforms..... Candee[_8_] Excel Programming 1 November 27th 03 06:02 PM
Userforms Gary[_8_] Excel Programming 1 August 18th 03 03:26 PM
Userforms Henry[_4_] Excel Programming 0 August 9th 03 11:37 PM


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