Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Undo c++ macro not found??

Hi im righting some stuff in Excel with a UDF button made under ATL/COM.
i want the user to be able to make an undo. righting is fine. with using
OnUndo i m able to get a the undo clicked under excel but then i get makto
"undoright" not found
any idea ?
mny thnks
here s a simple example


Header::
Excel::_ApplicationPtr xapp;
Excel::RangePtr xSaved;

void right()
{
//saving for undo
xSaved=xapp-GetRange("a3:a10")
//righting to sheet
xapp-GetRange("a3:a10")-Value2="justatest";
}
Undoright
{
xSaved-Activate();
}

//called when button is clicked

void __stdcall MyExcelTools::ApplyClick(Office::_CommandBarButton Ptr Ctrl,
VARIANT_BOOL * CancelDefault)
{
right();

m_x1-OnUndo("Undoright","right");

}
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
use macro and allow undo ben New Users to Excel 3 November 30th 08 10:11 AM
Undo a Macro Elise148 Excel Discussion (Misc queries) 1 June 14th 07 04:57 PM
Undo a Macro? [email protected] Excel Programming 1 May 24th 06 12:47 PM
Undo row insert from macro No Name Excel Programming 2 July 19th 04 10:54 PM
Undo Macro Danny Excel Programming 1 June 28th 04 04:43 PM


All times are GMT +1. The time now is 11:02 PM.

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"