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

I am a beginner in Excel programming. There are a bunch of
cells with colored borders and colored background. I
programmed a button to clear all of the colored borders
and background for certain purpose. My question is at the
end of the program, I need to find some ways to restore
the original colored borders and background. How to
achieve and restore that?

Thanks all!

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel/VBA Questions

You would need to loop through them all, save the details, and restore
afterwards.

Why not just leave 'em be? Try ClearContents instaed of Clear.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Chris" wrote in message
...
I am a beginner in Excel programming. There are a bunch of
cells with colored borders and colored background. I
programmed a button to clear all of the colored borders
and background for certain purpose. My question is at the
end of the program, I need to find some ways to restore
the original colored borders and background. How to
achieve and restore that?

Thanks all!

Chris



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel/VBA Questions

Hi Bob, Thanks a lot! I am new and sorry for my ignorance.
How do you just save a few cells' borders and background
within a big Excel file and then restore those borders and
background? Do you have any sample code for that?
Chris

-----Original Message-----
You would need to loop through them all, save the

details, and restore
afterwards.

Why not just leave 'em be? Try ClearContents instaed of

Clear.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Chris" wrote in message
...
I am a beginner in Excel programming. There are a bunch

of
cells with colored borders and colored background. I
programmed a button to clear all of the colored borders
and background for certain purpose. My question is at

the
end of the program, I need to find some ways to restore
the original colored borders and background. How to
achieve and restore that?

Thanks all!

Chris



.

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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
Excel '07 Questions Geoff from LA Excel Discussion (Misc queries) 0 January 16th 08 04:28 PM
2 excel questions Zee Excel Discussion (Misc queries) 1 August 9th 06 12:02 PM
Excel Questions for VB6 Aaron[_8_] Excel Programming 1 September 5th 03 08:34 PM


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