LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default Programming Logic

HI

Instead of "saving as " why not create a new work book copy the contents
of A to the new work book, call the new work book B and save it.

Then activate work book A

This way the code in workbook A will remain active I think.

Best N10

"robot" wrote in message
...
Hello,

I have an Excel file (FileA.xls) with a button that, when clicked, will
fire
a subroutine that will:-

1. Save the file (activeworkbook) as FileB.xls (So FileA is closed
automatically)
2. Delete some rows from FileB
3. Save and Close FileB
4. Open FileA
5. Delete some other rows from FileA.

However, the code runs fine except that 5 above is not executed. I guess
it
is because I have closed FileA in which the subroutine resides.

How do I solve this problem? Suggestions will be appreciated.




 
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
Excel 2007-macro programming logic for data validation Derek Megyesi Excel Discussion (Misc queries) 2 February 1st 10 01:34 AM
More if then logic DJ Excel Worksheet Functions 2 October 8th 09 05:40 PM
More if then logic DJ Excel Worksheet Functions 2 October 8th 09 05:37 PM
LOGIC H0MELY Excel Discussion (Misc queries) 6 June 4th 08 10:41 PM
If Then logic not enough workerbeeVAB Excel Discussion (Misc queries) 4 January 5th 06 05:24 PM


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