I've written, er, that is, recorded and re-written a lot of little useful
macros to help me with a spreadsheet dealing with financial investments.
Very handy they are, yes, but sometimes I wish I could undo what one of
them just screwed up for me.
Is there any sort of checkpoint capability I could bodge into the code?
The help index doesn't seem to know what that checkpointing means, no
surprise, since I dredged it up from my ancient mainframer days.
On a completely unrelated thought thread, can anyone tell me if I'll be
shafted by upgrading from Excel 2000? Will all my VBA code be broken,
replaced with a error window telling me I need to learn VFA (Visual Fred
for Apps)? 3 12650
"...And the next sign of the Apocalypse will be..."
*****
On Mon, 16 Feb 2004 14:30:35 GMT, Enigman O'Maly wrote: I've written, er, that is, recorded and re-written a lot of little useful macros to help me with a spreadsheet dealing with financial investments. Very handy they are, yes, but sometimes I wish I could undo what one of them just screwed up for me.
Is there any sort of checkpoint capability I could bodge into the code? The help index doesn't seem to know what that checkpointing means, no surprise, since I dredged it up from my ancient mainframer days.
On a completely unrelated thought thread, can anyone tell me if I'll be shafted by upgrading from Excel 2000? Will all my VBA code be broken, replaced with a error window telling me I need to learn VFA (Visual Fred for Apps)?
This question belongs in an Excel group. I see that you posted your
second question in one, why not the first?
If you want an undo stack for VBA, you're up the proverbial creek. My
work-around is to save immediately before running one, and then if I
want to undo, I simply close and re-open. (I suppose you could write a
custom undo stack, maybe drop it into an add-in...)
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
C Programmers do it with the LARGE model!
On Mon, 16 Feb 2004 11:07:01 -0700, Auric__ <no*********@em ail.address>
wrote: "...And the next sign of the Apocalypse will be..." ***** On Mon, 16 Feb 2004 14:30:35 GMT, Enigman O'Maly wrote:
I've written, er, that is, recorded and re-written a lot of little useful macros to help me with a spreadsheet dealing with financial investments. Very handy they are, yes, but sometimes I wish I could undo what one of them just screwed up for me.
Is there any sort of checkpoint capability I could bodge into the code? The help index doesn't seem to know what that checkpointing means, no surprise, since I dredged it up from my ancient mainframer days.
On a completely unrelated thought thread, can anyone tell me if I'll be shafted by upgrading from Excel 2000? Will all my VBA code be broken, replaced with a error window telling me I need to learn VFA (Visual Fred for Apps)?
This question belongs in an Excel group. I see that you posted your second question in one, why not the first?
If you want an undo stack for VBA, you're up the proverbial creek. My work-around is to save immediately before running one, and then if I want to undo, I simply close and re-open. (I suppose you could write a custom undo stack, maybe drop it into an add-in...)
First, thanks for the comments on the undo stack. I suppose I'll have to
adopt your method, since I have no idea how to write such a thing.
I put the first question here because it seemed to be a purely VB-ish
question. The second question came to mind while posting the first, and
since it seemed more Excel-ish, I posted it in that group also.
On Wed, 18 Feb 2004 00:10:52 GMT, Enigman O'Maly wrote: I put the first question here because it seemed to be a purely VB-ish question. The second question came to mind while posting the first, and since it seemed more Excel-ish, I posted it in that group also.
Well, since it was about programming Excel, it would have been better to
ask it in the Excel group. Not that it was off-topic here (after all,
this isn't c.l.v.b.everyth ing.except.exce l), but there's a reason why
that group has "excel.programm ing" in the name. ;)
Tom Ogilvy, the guru of m.p.e.p, gives this link as a good resource for
learning how to roll your own undo stack (and it applies somewhat to
regular VB, as well): http://j-walk.com/ss/excel/tips/tip23.htm
--
auric "underscore " "underscore " "at" hotmail "dot" com
*****
Do not be led astray onto the path of virtue. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lyn |
last post by:
Hi,
I have a text control on a form which is bound to table field StartDate
which is in Date format. When updating the table record via the form, any
data entered into the StartDate control is immediately validated. If the
data entered is considered valid, focus moves to the next control in the tab
sequence. So far, so good.
If the data entered in StartDate is considered invalid, an error message is
displayed via MsgBox. When OK is...
|
by: Lyn |
last post by:
Hi,
In the BeforeUpdate event of a textbox control I have the following
simplified code:-
Private Sub StartDate_BeforeUpdate(Cancel As Integer)
MsgBox "StartDate Error -- Please Check and Re-Enter."
Me!StartDate.Undo
Debug.Print "After Undo: " & Me!StartDate
Cancel = True
|
by: babylon |
last post by:
any facilities in csharp that can help me implmenting undo/redo in my
application?
thx
|
by: HS Hartkamp |
last post by:
Hi all,
I am working with fairly large databases (> 500 Mb / < 2,000,000 rexcords),
and often need to do action queries on these.
I have the feeling that much of the computing power is going into building a
table of changes so that you can be prompted "Are you sure to change xx
records", and be able to reply no.
I regularly get messages that say "Insufficient memory or disk space, you
won't be able to undo; continue?"
|
by: GoogleEyeJoe |
last post by:
Dear ladies and gents,
I'm trying to determine whether the .NET Framework implements a means
of transactional processing without the need for a database.
Essentially, I'd like to enlist light-weight portable business objects
within transactions so that that have the ability to roll-back if the
client of the object wishes to undo any changes made. For example, if I
had a, let's say for sake of simplicity, a person class that had two...
| |
by: =?Utf-8?B?UmljaA==?= |
last post by:
Hello,
Does vb2005 have a built-in UnDo feature / object for applications so that I
can undo actions like other windows apps? Or do I have to write my own UnDo
routine?
If vb2005 does have a builtin Undo feature / object / command -- how to
implement it? invoke it?
If there is no builtin undo feature - is there a recommended way to write an
|
by: Katvis |
last post by:
Hi guys,
I am very new at this VB programming thing and need a script to undo a macro, I would appreciate your assistance,
Sub DelEmpty()
Selection.SpecialCells(xlCellTypeBlanks).Delete (xlShiftUp)
End Sub
Sub UndoDelEmpry()
|
by: wizard of oz |
last post by:
Hi all,
I'm extending an Abstract Styled Document associated with a JTextPanel to
implement a syntax highlighting editor. This is all working just fine -
except for undo / redo.
The problem is that the undo manager is recording my highlighting that
occurs as a result of keystrokes. So whenever the user performs undo, the
last operation (a colour highlight operation) is undone. Since I need to
refresh the highlighting when the undo is...
|
by: Jeremy |
last post by:
I'm working on an application that does some DOM manipulation. I want
to add a mechanism for "Undo" so that the user can revert to the
previous state after performing a mistaken action. Simple idea, not
necessarily simple to implement.
My first idea for this is to use closures and an array that tracks the
inverse of the user's actions. Here's a simple example in which the
user can only remove DOM nodes and then undo the removal...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |