Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cincode5
 
Posts: n/a
Default Repainting a Workbook

I have a workbook that contains about a dozen or so Rectangles that are color
formatted with fill effects. I've noticed that whenever I use a pull down
menu, a portions of the Rectangles change color. Its a subtle change of
perhaps a shade or two but its quite annoying. If I switch to another
worksheet then return the image returns back to its normal appearance.

I noticed a VBA command "Repaint", but cannot seem to figure out the correct
syntex. "HELP" say its object.Repaint, but I can't seem to get it to work
when I apply it to a Rectangle. Can someone please tell what I'm doing
wrong, or suggest an alternate method.

Thanks guys...
--
Regards...
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Maybe you could have a macro that switches to a different worksheet that
switches back.

I've never seen anything like this, but you may want to try it by adding a new
sheet:


Option Explicit
Sub testme01()

Dim CurSelection As Range
Dim ActCell As Range
Dim DummyWks As Worksheet

Set ActCell = ActiveCell
Set CurSelection = Selection

With Application
.ScreenUpdating = False
Set DummyWks = Worksheets.Add
.DisplayAlerts = False
DummyWks.Delete
.DisplayAlerts = True
.Goto CurSelection
ActCell.Activate
End With

End Sub

If that doesn't work, try deleting the .screenupdating lines.

cincode5 wrote:

I have a workbook that contains about a dozen or so Rectangles that are color
formatted with fill effects. I've noticed that whenever I use a pull down
menu, a portions of the Rectangles change color. Its a subtle change of
perhaps a shade or two but its quite annoying. If I switch to another
worksheet then return the image returns back to its normal appearance.

I noticed a VBA command "Repaint", but cannot seem to figure out the correct
syntex. "HELP" say its object.Repaint, but I can't seem to get it to work
when I apply it to a Rectangle. Can someone please tell what I'm doing
wrong, or suggest an alternate method.

Thanks guys...
--
Regards...


--

Dave Peterson
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
copy COLUMN from 1 worksheet to another (in a different workbook) DavidB Excel Discussion (Misc queries) 3 January 15th 05 02:47 PM
copy a workbook from other workbook with lot of sheets wit... Vai Excel Discussion (Misc queries) 1 January 3rd 05 10:27 PM
Cannot display Workbook Kit Lau Excel Discussion (Misc queries) 4 December 30th 04 02:05 PM
Creating a subbook from a workbook. Chaplain Doug Excel Discussion (Misc queries) 0 December 19th 04 11:31 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM


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