Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vba - generating button into worksheet

Hi all,

I will apreciate any help.

When opening worksheet "WSH" I need to show a button wich allows th
user to go to userform1.

I've tried making a userform which looks like a button, the problem is
in that case, that while userform is active, user cannot scroll up o
down in the WSH.

I need the button to appear when WSH initializes and stay on top o
page (allowing scrolling up or down) and when user clicks it it show
me userform1.

I hope someone can help on this.
Thanks in advance.
Aldo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Vba - generating button into worksheet

This will create a Forms button

Sub AddFormsButton()

With ActiveSheet
.Buttons.Add(372.75, 46.5, 126, 63).Select
Selection.OnAction = "Macro1"
End With

End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"ajliaks " wrote in message
...
Hi all,

I will apreciate any help.

When opening worksheet "WSH" I need to show a button wich allows the
user to go to userform1.

I've tried making a userform which looks like a button, the problem is,
in that case, that while userform is active, user cannot scroll up or
down in the WSH.

I need the button to appear when WSH initializes and stay on top of
page (allowing scrolling up or down) and when user clicks it it shows
me userform1.

I hope someone can help on this.
Thanks in advance.
Aldo.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vba - generating button into worksheet

Not sure if this is what you want...

UserForm1.Show vbModeles

--
Message posted from http://www.ExcelForum.com

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
Generating reports from an Excel 2002 worksheet marionh New Users to Excel 2 May 1st 08 10:20 AM
Generating Pivot Table from multiple worksheet jackysoh Excel Worksheet Functions 1 October 4th 07 06:41 PM
Generating third worksheet from two others MIchael Excel Discussion (Misc queries) 2 March 14th 05 10:11 PM
Generating a Userform based on a worksheet Glenn Excel Discussion (Misc queries) 0 March 4th 05 07:25 PM
generating sheet with command button & code Bob[_27_] Excel Programming 4 August 4th 03 02:46 PM


All times are GMT +1. The time now is 08:48 PM.

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"