Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Undo Borders

Hello,

I am able to programatically add borders to cells or range or multiple
ranges. But I am unable to programatically undo the borders applied.
Can someone let me know if this is a bug.

// the below line works
oActiveSheet.get_Range("A1:C5",oMissing).BorderAro und(oMissing,Excel.XlBorderWeight.xlThick,Excel.Xl ColorIndex.xlColorIndexAutomatic,oMissing);

// this doesnt work
oExcelApp.Undo();

Thanks
Prasanta

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Undo Borders

Hi Prasanta,

The undo feature in Excel only applies to actions taken by the user
through the UI. The undo stack doesn't contain anything you do
programmatically. If you want to be able to undo actions that your program
takes you'll have to roll your own undo stack, which is more trouble than
it's worth in the vast majority of cases IMO.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm

"prasanta" wrote in message
oups.com...
Hello,

I am able to programatically add borders to cells or range or multiple
ranges. But I am unable to programatically undo the borders applied.
Can someone let me know if this is a bug.

// the below line works
oActiveSheet.get_Range("A1:C5",oMissing).BorderAro und(oMissing,Excel.XlBorderWeight.xlThick,Excel.Xl ColorIndex.xlColorIndexAutomatic,oMissing);

// this doesnt work
oExcelApp.Undo();

Thanks
Prasanta



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
Undo Carolyn Excel Discussion (Misc queries) 2 January 12th 07 07:44 PM
Undo Carolyn Excel Discussion (Misc queries) 7 January 12th 07 03:15 PM
Undo yarp Excel Discussion (Misc queries) 5 August 15th 05 05:59 PM
UNDO - how many times can I UNDO? Jane Excel Worksheet Functions 2 May 19th 05 03:03 AM
Why is my undo function in Excel only can undo the last 1 or 2 ch. 1111111111111111111111111111111111111111 Excel Worksheet Functions 1 November 24th 04 11:13 AM


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