Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel should rewrite macros when adding rows or columns

The way that formulas rewrite themselves when adding rows or columns so that
they still apply to the right blocks is not true in the case of macros. While
it is true that the macro is more an external feature, it is terrible that
the addition of one row or column distorts the application of the macro to
every row beneath or beyond the insertion. For static workbooks / templates
the macro function is essentially worthless and editing them all for each
addition wastes all the time the macro should be saving. An internal macro
system just for Excel (the greatest program on Earth) would be fantastic.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel should rewrite macros when adding rows or columns

I wouldn't want Excel to attempt to rewrite any of my code. There
are so many ways to specify a range in VBA that the potential for
error is too high. You can avoid the problem entirely by using
named ranges on your worksheet and using those names in your VBA
code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"badorphan" wrote in
message
...
The way that formulas rewrite themselves when adding rows or
columns so that
they still apply to the right blocks is not true in the case of
macros. While
it is true that the macro is more an external feature, it is
terrible that
the addition of one row or column distorts the application of
the macro to
every row beneath or beyond the insertion. For static workbooks
/ templates
the macro function is essentially worthless and editing them
all for each
addition wastes all the time the macro should be saving. An
internal macro
system just for Excel (the greatest program on Earth) would be
fantastic.

----------------
This post is a suggestion for Microsoft, and Microsoft responds
to the
suggestions with the most votes. To vote for this suggestion,
click the "I
Agree" button in the message pane. If you do not see the
button, follow this
link to open the suggestion in the Microsoft Web-based
Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel should rewrite macros when adding rows or columns

I'm sorry, everything I know about using Excel I pretty much figured out
myself and I am not familiar with terminology. I do not know what "VBA" is.
Are you saying that the macro should point to a specific cell (presumably on
a part of the page that would never move, that would react to the static
nature of the page) and from there it would direct the "where-to's"? Would
those cells be flagged with a simple equal sign in that "master cell"? If so,
THANK YOU! I really should have thought of that myself.

"Chip Pearson" wrote:

I wouldn't want Excel to attempt to rewrite any of my code. There
are so many ways to specify a range in VBA that the potential for
error is too high. You can avoid the problem entirely by using
named ranges on your worksheet and using those names in your VBA
code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"badorphan" wrote in
message
...
The way that formulas rewrite themselves when adding rows or
columns so that
they still apply to the right blocks is not true in the case of
macros. While
it is true that the macro is more an external feature, it is
terrible that
the addition of one row or column distorts the application of
the macro to
every row beneath or beyond the insertion. For static workbooks
/ templates
the macro function is essentially worthless and editing them
all for each
addition wastes all the time the macro should be saving. An
internal macro
system just for Excel (the greatest program on Earth) would be
fantastic.

----------------
This post is a suggestion for Microsoft, and Microsoft responds
to the
suggestions with the most votes. To vote for this suggestion,
click the "I
Agree" button in the message pane. If you do not see the
button, follow this
link to open the suggestion in the Microsoft Web-based
Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel should rewrite macros when adding rows or columns

VBA is Visual Basic for Applications, the language in which
macros are written. I took your original message to mean that
Excel should change a line of code like

Range("A1").Value = 123
to
Range("A2").Value = 123

when a row is inserted. This sort of change would be impossible
to make consistently and accurately. There are just too many ways
to specify, in VBA code, a reference to cell A1.

What I meant by using defined names for ranges is that if you
name a cell, that name will always point to that cell, even when
rows/columns are inserted or deleted. You can reference defined
names in VBA with code like

Range("MyRange").Value = 123


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"badorphan" wrote in
message
...
I'm sorry, everything I know about using Excel I pretty much
figured out
myself and I am not familiar with terminology. I do not know
what "VBA" is.
Are you saying that the macro should point to a specific cell
(presumably on
a part of the page that would never move, that would react to
the static
nature of the page) and from there it would direct the
"where-to's"? Would
those cells be flagged with a simple equal sign in that "master
cell"? If so,
THANK YOU! I really should have thought of that myself.

"Chip Pearson" wrote:

I wouldn't want Excel to attempt to rewrite any of my code.
There
are so many ways to specify a range in VBA that the potential
for
error is too high. You can avoid the problem entirely by using
named ranges on your worksheet and using those names in your
VBA
code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"badorphan" wrote in
message
...
The way that formulas rewrite themselves when adding rows or
columns so that
they still apply to the right blocks is not true in the case
of
macros. While
it is true that the macro is more an external feature, it is
terrible that
the addition of one row or column distorts the application
of
the macro to
every row beneath or beyond the insertion. For static
workbooks
/ templates
the macro function is essentially worthless and editing them
all for each
addition wastes all the time the macro should be saving. An
internal macro
system just for Excel (the greatest program on Earth) would
be
fantastic.

----------------
This post is a suggestion for Microsoft, and Microsoft
responds
to the
suggestions with the most votes. To vote for this
suggestion,
click the "I
Agree" button in the message pane. If you do not see the
button, follow this
link to open the suggestion in the Microsoft Web-based
Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel should rewrite macros when adding rows or columns

You understood my post correctly. It took me a little while to figure out
exactly what you meant, but I get it. I renamed a few cells, recorded the
macro, went into the editor and changed the A1 A2... to their respective new
names, added the new row and it worked. I foresee many tedious hours ahead!!
Chip, thank you.

"Chip Pearson" wrote:

VBA is Visual Basic for Applications, the language in which
macros are written. I took your original message to mean that
Excel should change a line of code like

Range("A1").Value = 123
to
Range("A2").Value = 123

when a row is inserted. This sort of change would be impossible
to make consistently and accurately. There are just too many ways
to specify, in VBA code, a reference to cell A1.

What I meant by using defined names for ranges is that if you
name a cell, that name will always point to that cell, even when
rows/columns are inserted or deleted. You can reference defined
names in VBA with code like

Range("MyRange").Value = 123


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"badorphan" wrote in
message
...
I'm sorry, everything I know about using Excel I pretty much
figured out
myself and I am not familiar with terminology. I do not know
what "VBA" is.
Are you saying that the macro should point to a specific cell
(presumably on
a part of the page that would never move, that would react to
the static
nature of the page) and from there it would direct the
"where-to's"? Would
those cells be flagged with a simple equal sign in that "master
cell"? If so,
THANK YOU! I really should have thought of that myself.

"Chip Pearson" wrote:

I wouldn't want Excel to attempt to rewrite any of my code.
There
are so many ways to specify a range in VBA that the potential
for
error is too high. You can avoid the problem entirely by using
named ranges on your worksheet and using those names in your
VBA
code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"badorphan" wrote in
message
...
The way that formulas rewrite themselves when adding rows or
columns so that
they still apply to the right blocks is not true in the case
of
macros. While
it is true that the macro is more an external feature, it is
terrible that
the addition of one row or column distorts the application
of
the macro to
every row beneath or beyond the insertion. For static
workbooks
/ templates
the macro function is essentially worthless and editing them
all for each
addition wastes all the time the macro should be saving. An
internal macro
system just for Excel (the greatest program on Earth) would
be
fantastic.

----------------
This post is a suggestion for Microsoft, and Microsoft
responds
to the
suggestions with the most votes. To vote for this
suggestion,
click the "I
Agree" button in the message pane. If you do not see the
button, follow this
link to open the suggestion in the Microsoft Web-based
Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming








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
ADDING COLUMNS FOR COMMON ROWS JGAVIGAN Excel Discussion (Misc queries) 2 April 9th 10 03:06 AM
keep formulareferenses when adding columns or rows vito Excel Discussion (Misc queries) 3 April 8th 09 09:05 AM
adding more columns/rows Jo Davis Excel Discussion (Misc queries) 4 September 24th 08 07:57 PM
Adding up columns for speciic rows confused Excel Worksheet Functions 1 March 3rd 08 04:16 PM
adding specifics columns and rows yodochi Excel Worksheet Functions 1 July 25th 07 03:24 AM


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