PC Review


Reply
Thread Tools Rate Thread

customised userform

 
 
filo666
Guest
Posts: n/a
 
      16th Mar 2009
Hi, I have a dialogbox (Set shp1 =
ActiveWorkbook.ActiveSheet.Shapes.AddShape(msoShapeRectangularCallout, lft +
wth - 9, tp - 5.9 * hgt, 110, 65))

that is called in a selectionchange event, the problem is that when it is
called the undo is lost, I dont want to lose the undo, therefore I thought
about using a Userform (modeless), the problem with the userform is the form
(I wanted to be like msoShapeRectangularCallout) and the background color (I
want yellow with 40% transparency and no border lines)

the rest of the thinks I know how to accomplish (possition, etc).

any suggestion will be appresiated.
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      16th Mar 2009
All most anything you do via VBA code (from a code module, object
module, or userform) clears out the Undo buffer. You could try to
write your own Undo method, but that can get rather tricky rather
quickly.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Mon, 16 Mar 2009 05:08:01 -0700, filo666
<(E-Mail Removed)> wrote:

>Hi, I have a dialogbox (Set shp1 =
>ActiveWorkbook.ActiveSheet.Shapes.AddShape(msoShapeRectangularCallout, lft +
>wth - 9, tp - 5.9 * hgt, 110, 65))
>
>that is called in a selectionchange event, the problem is that when it is
>called the undo is lost, I dont want to lose the undo, therefore I thought
>about using a Userform (modeless), the problem with the userform is the form
>(I wanted to be like msoShapeRectangularCallout) and the background color (I
>want yellow with 40% transparency and no border lines)
>
>the rest of the thinks I know how to accomplish (possition, etc).
>
>any suggestion will be appresiated.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fill userform textbox from userform listbox clik event GregJG Microsoft Excel Programming 1 7th Dec 2008 02:05 PM
Is there an easy Copy/Paste of a Userform ? (Entire Userform Including tx & cbx's) Corey Microsoft Excel Programming 2 9th Jan 2007 01:01 PM
Looping procedure calls userform; how to exit loop (via userform button)? KR Microsoft Excel Programming 6 27th Jul 2005 12:57 PM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com Microsoft Excel Programming 3 6th May 2005 05:44 PM
Access from add_in userform to main template userform.... =?Utf-8?B?QWppdA==?= Microsoft Excel Programming 1 18th Nov 2004 05:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 AM.