Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Morning all.
Back in July I was having a conversation with Dave Peterson regarding the merging of cells. All of the code, etc... is at this link. http://www.microsoft.com/communities...4-4ad88ee76d9f As I have worked through his code sample, I found that I ran across an issue I wasn't anticipating. It appears that the TopCell variable remains as a constant, and each new BotCell variable is the variant. This results in my merged cell group growing by the location of the botcell. I.e., say that I start TopCell at a10. BotCell drops by 4 with each new iteration. When my IF criteria are located, instead of TopCell being relocated for each new iteration it remains at A10, and everything from TopCell to BotCell is merged. In the end, I get a merged cell group that is 1000's of rows in size. In spite of my criteria stated in the IF EQ's. My intention was to have the buffer emptied for TopCell, and BotCell, so that they'd find the next set of criteria, and perform the group merge that I want. It appears that the BotCell is indeed reset, but the TopCell remains at its original position. I have if eq's set to look for row border types. If the border is found at the top of the cell, use that as my TopCell. it then looks for either a bottom or a top border. If it finds a bottom border, it sets that as the BotCell. What verbage/term/phrase do I need to empty/reset the buffer for both TopCell, and BotCell? Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Buffer Overflow in Excel | Excel Worksheet Functions | |||
Buffer Overflow | Excel Programming | |||
Shift+Del buffer | Excel Programming | |||
Reading txt file into the buffer | Excel Programming | |||
buffer overflow | Excel Programming |