Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default how do I debug my Excel macro & make it actually WORK?

I don't have any online references for you per se. A lot of the MVPs have
their own web sites which you might want to check out. I have quite a number
but I don't have them delineated as to what they cover (i.e. programming or
other.) Most of what I have learned has been from books. I can recommend
John Walkenbach. For instance, Excell 2002 Power Programming with VBA (I am
actually using 2000 and I know 2003 is out, but that was the book that was
available at my bookstore when I went shopping.)

If you get no further responses as to online resources for programming you
might want to either post a new question or maybe try a search to see what
has been recommended in the past.

--
Kevin Vaughn


"Brainless_in_Boston" wrote:

Kevin,

This code looks great. Thanks for your post. I'm dying to test it - as soon
as I finish my reconciliation here.

I looked for an online glossary that would explain code/commands, and how to
assemble functional VB code, but I certainly did not find anything that
included "As Range" and such. I looked, believe me.

Can you suggest any free sources for a beginner like me? I spent a lot of
time on this yesterday, and got nowhere.

Again thanks for your expertise. I really appreciate it.

Mark
=========================================

"Kevin Vaughn" wrote:

Here is the new version. You can select multiple columns or a single column,
appears to work either way. Select the rows you want to total and then
invoke the macro and it will add the formula and bold it.

Sub Macro7()
Dim myRange As Range
Dim RowCount As Long
RowCount = Selection.Rows.Count
Set myRange = ActiveSheet.Range(Selection.Address)
' ActiveCell.FormulaR1C1 = "=SUM(R[-2]C:R[-1]C)"
myRange.Offset(RowCount).Resize(1).EntireRow.Inser t
With myRange.Offset(RowCount).Resize(1)
.FormulaR1C1 = "=sum(r[-" & RowCount & "]c:r[-1]c)"
.Font.Bold = True
End With
End Sub

--
Kevin Vaughn


"Kevin Vaughn" wrote:

Ah, I see what you are intending. You select the rows you want totaled and
then run the macro. Let me see if I can modify it to do this.
--
Kevin Vaughn

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
Macro sends Excel file by Outlook - works in debug - not realt Prabha Excel Programming 2 December 8th 05 02:18 PM
How do I resolve debug error macro Excel 2000? At least, any lead Excel 2000 Macros debugger Excel Discussion (Misc queries) 5 October 25th 05 08:56 AM
How do I make a macro work in one worksheet only Hawkfan757 Excel Programming 1 January 11th 05 05:43 PM
Macro Debug tcnichols Excel Programming 4 July 22nd 04 06:18 PM
Macro to make a cell work like a check Logan[_2_] Excel Programming 2 February 3rd 04 04:11 AM


All times are GMT +1. The time now is 02:34 AM.

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"