Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Does a workbook become fragmented after much editing?

Greetings! I have been reading "ExcelTips: The Macros, Fifth edition"
published by:
Sharon Parq Associates, Inc., PO Box 794, Orem, UT 84059. On p 23, it states
the following:

"As you make changes to macros, adding and removing code, the actual file
used to store the macros (the workbook) can get quite fragmented. It seems
that internally the macros are stored in blocks, and much like a disk drive,
the blocks can become €śnon-contiguous€ť over time. (This happens only through
editing, not through use of the macros themselves.) Some readers have
reported that there are times the fragmentation can get so bad that the
macros may fail or the workbook become unusable.
The solution to this potential problem is to do your macro development in a
different workbook than the one that will eventually hold the macros. Thus,
when the macro is transferred to its final home, it will be transferred as a
contiguous block, rather than being fragmented.
If you want to make sure that the macro fragmentation is completely removed
from a current workbook, all you need to do is export your VBA modules to
text files, create a brand new workbook, and import the modules into it."

Is this true of Excel VBA 2007? Since I have 200 Excel VBA Macros in my
Personal Workbook, it would be considerable work to export my VBA modules to
text files, create a brand new workbook, and import the modules into it.
Perhaps, if it is necessary to defrag the Personal Workbook, there is a
quicker way to accomplish this. I welcome all your comments and suggestions.
May you have a blessed day.
--
May you have a most blessed day!

Sincerely,

Michael Fitzpatrick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Does a workbook become fragmented after much editing?

Michael,

Someone else has already solved this problem for us:

http://www.appspro.com/Utilities/CodeCleaner.htm

Tim


"MichaelDavid" wrote in message
...
Greetings! I have been reading "ExcelTips: The Macros, Fifth edition"
published by:
Sharon Parq Associates, Inc., PO Box 794, Orem, UT 84059. On p 23, it
states
the following:

"As you make changes to macros, adding and removing code, the actual file
used to store the macros (the workbook) can get quite fragmented. It seems
that internally the macros are stored in blocks, and much like a disk
drive,
the blocks can become "non-contiguous" over time. (This happens only
through
editing, not through use of the macros themselves.) Some readers have
reported that there are times the fragmentation can get so bad that the
macros may fail or the workbook become unusable.
The solution to this potential problem is to do your macro development in
a
different workbook than the one that will eventually hold the macros.
Thus,
when the macro is transferred to its final home, it will be transferred as
a
contiguous block, rather than being fragmented.
If you want to make sure that the macro fragmentation is completely
removed
from a current workbook, all you need to do is export your VBA modules to
text files, create a brand new workbook, and import the modules into it."

Is this true of Excel VBA 2007? Since I have 200 Excel VBA Macros in my
Personal Workbook, it would be considerable work to export my VBA modules
to
text files, create a brand new workbook, and import the modules into it.
Perhaps, if it is necessary to defrag the Personal Workbook, there is a
quicker way to accomplish this. I welcome all your comments and
suggestions.
May you have a blessed day.
--
May you have a most blessed day!

Sincerely,

Michael Fitzpatrick



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Does a workbook become fragmented after much editing?

Hi Tim:
I downloaded and ran your recommendation. I then ran some of my macros.
They seemed to run ok, hopefully faster. Thanks for your help.
--
May you have a most blessed day!

Sincerely,

Michael Fitzpatrick


"Tim Williams" wrote:

Michael,

Someone else has already solved this problem for us:

http://www.appspro.com/Utilities/CodeCleaner.htm

Tim


"MichaelDavid" wrote in message
...
Greetings! I have been reading "ExcelTips: The Macros, Fifth edition"
published by:
Sharon Parq Associates, Inc., PO Box 794, Orem, UT 84059. On p 23, it
states
the following:

"As you make changes to macros, adding and removing code, the actual file
used to store the macros (the workbook) can get quite fragmented. It seems
that internally the macros are stored in blocks, and much like a disk
drive,
the blocks can become "non-contiguous" over time. (This happens only
through
editing, not through use of the macros themselves.) Some readers have
reported that there are times the fragmentation can get so bad that the
macros may fail or the workbook become unusable.
The solution to this potential problem is to do your macro development in
a
different workbook than the one that will eventually hold the macros.
Thus,
when the macro is transferred to its final home, it will be transferred as
a
contiguous block, rather than being fragmented.
If you want to make sure that the macro fragmentation is completely
removed
from a current workbook, all you need to do is export your VBA modules to
text files, create a brand new workbook, and import the modules into it."

Is this true of Excel VBA 2007? Since I have 200 Excel VBA Macros in my
Personal Workbook, it would be considerable work to export my VBA modules
to
text files, create a brand new workbook, and import the modules into it.
Perhaps, if it is necessary to defrag the Personal Workbook, there is a
quicker way to accomplish this. I welcome all your comments and
suggestions.
May you have a blessed day.
--
May you have a most blessed day!

Sincerely,

Michael Fitzpatrick



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Does a workbook become fragmented after much editing?

How could Rob Bovey merely be "someone else" <g

Regards,
Peter T

"Tim Williams" wrote in message
...
Michael,

Someone else has already solved this problem for us:

http://www.appspro.com/Utilities/CodeCleaner.htm

Tim


"MichaelDavid" wrote in message
...
Greetings! I have been reading "ExcelTips: The Macros, Fifth edition"
published by:
Sharon Parq Associates, Inc., PO Box 794, Orem, UT 84059. On p 23, it
states
the following:

"As you make changes to macros, adding and removing code, the actual file
used to store the macros (the workbook) can get quite fragmented. It
seems
that internally the macros are stored in blocks, and much like a disk
drive,
the blocks can become "non-contiguous" over time. (This happens only
through
editing, not through use of the macros themselves.) Some readers have
reported that there are times the fragmentation can get so bad that the
macros may fail or the workbook become unusable.
The solution to this potential problem is to do your macro development in
a
different workbook than the one that will eventually hold the macros.
Thus,
when the macro is transferred to its final home, it will be transferred
as a
contiguous block, rather than being fragmented.
If you want to make sure that the macro fragmentation is completely
removed
from a current workbook, all you need to do is export your VBA modules to
text files, create a brand new workbook, and import the modules into it."

Is this true of Excel VBA 2007? Since I have 200 Excel VBA Macros in my
Personal Workbook, it would be considerable work to export my VBA modules
to
text files, create a brand new workbook, and import the modules into it.
Perhaps, if it is necessary to defrag the Personal Workbook, there is a
quicker way to accomplish this. I welcome all your comments and
suggestions.
May you have a blessed day.
--
May you have a most blessed day!

Sincerely,

Michael Fitzpatrick





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
Multiple tab workbook freezes during editing Down to my last nerve Excel Discussion (Misc queries) 1 February 16th 10 03:01 PM
How to rename workbook that I am editing without saving? [email protected] Excel Discussion (Misc queries) 1 March 23rd 08 04:00 PM
Editing a workbook at the same time selin Excel Discussion (Misc queries) 3 August 17th 07 02:06 AM
cant open for workbook editing Kevin Labore Excel Discussion (Misc queries) 3 December 24th 05 01:29 AM
select from a fragmented list AndrewB Excel Worksheet Functions 6 December 2nd 04 11:25 PM


All times are GMT +1. The time now is 10:19 AM.

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"