PC Review


Reply
 
 
ranswert
Guest
Posts: n/a
 
      9th Jan 2008
I have written the following procedure:

Sub addestimateitem()
Dim cboxno, itemno As Integer
unprotectsheet
itemno = ActiveSheet.Range("estitemnum") + 1
Range("estitemnum").Value = itemno
cboxno = ActiveSheet.Range("estcboxnum") + 1
Range("estcboxnum").Value = cboxno
Range("esttotal").Select
ActiveCell.Offset(itemno, 0).Name = "esttotalamt"
Range("estno").Select
ActiveCell.Offset(itemno, 0).Select
Selection.EntireRow.Insert
ActiveCell.Value = itemno
Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 3)).Select
mergecells
Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2)).Select
mergecells
ActiveCell.EntireRow.Cells(11).Value = cboxno
ActiveCell.Offset(0, -4).Select
Selection.RowHeight = 12.75
Selection.Font.Bold = False
Selection.Font.Size = 10
Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 5)).Select
Selection.Font.Bold = False
Range(ActiveCell.Offset(0, -2), ActiveCell.Offset(0, 4)).Select
addborders
ActiveCell.Offset(0, 1).Select
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 3)).Select
Selection.Locked = False
Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4)).Select
Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
With Selection.Font
.Name = "Arial"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
ActiveCell.Offset(0, -6).Select
addcheckbox
Range("esttotal").Select
Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(itemno, 0)).Select
Selection.Name = "esttotalscol"
Range("esttotalamt").Select
Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
ActiveCell.FormulaR1C1 = "=sum(esttotalscol)"
Range("estsubven").Select
ActiveCell.Offset(itemno, 0).Select
protectsheet


End Sub

When the procedure is done and i press the enter key the curser move up a
few rows and over one column instead of moving to the right one column. I
have the settings set for the curser to move to the right when it is pressed.
If I don't have the sheet protected it moves to the right. The cells are
not locked either. What do I need to do to get it to move right?
Thanks
 
Reply With Quote
 
 
 
 
ranswert
Guest
Posts: n/a
 
      9th Jan 2008
Also, is there a way to make this procedure shorter? It's a little slow.
Maybe there is a faster way to make it work.

"ranswert" wrote:

> I have written the following procedure:
>
> Sub addestimateitem()
> Dim cboxno, itemno As Integer
> unprotectsheet
> itemno = ActiveSheet.Range("estitemnum") + 1
> Range("estitemnum").Value = itemno
> cboxno = ActiveSheet.Range("estcboxnum") + 1
> Range("estcboxnum").Value = cboxno
> Range("esttotal").Select
> ActiveCell.Offset(itemno, 0).Name = "esttotalamt"
> Range("estno").Select
> ActiveCell.Offset(itemno, 0).Select
> Selection.EntireRow.Insert
> ActiveCell.Value = itemno
> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 3)).Select
> mergecells
> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2)).Select
> mergecells
> ActiveCell.EntireRow.Cells(11).Value = cboxno
> ActiveCell.Offset(0, -4).Select
> Selection.RowHeight = 12.75
> Selection.Font.Bold = False
> Selection.Font.Size = 10
> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 5)).Select
> Selection.Font.Bold = False
> Range(ActiveCell.Offset(0, -2), ActiveCell.Offset(0, 4)).Select
> addborders
> ActiveCell.Offset(0, 1).Select
> Selection.Borders(xlEdgeRight).LineStyle = xlNone
> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 3)).Select
> Selection.Locked = False
> Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4)).Select
> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> With Selection.Font
> .Name = "Arial"
> .Size = 10
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
> ActiveCell.Offset(0, 1).Select
> ActiveCell.FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
> ActiveCell.Offset(0, -6).Select
> addcheckbox
> Range("esttotal").Select
> Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(itemno, 0)).Select
> Selection.Name = "esttotalscol"
> Range("esttotalamt").Select
> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> With Selection.Font
> .Name = "Arial"
> .FontStyle = "Bold"
> .Size = 10
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
> ActiveCell.FormulaR1C1 = "=sum(esttotalscol)"
> Range("estsubven").Select
> ActiveCell.Offset(itemno, 0).Select
> protectsheet
>
>
> End Sub
>
> When the procedure is done and i press the enter key the curser move up a
> few rows and over one column instead of moving to the right one column. I
> have the settings set for the curser to move to the right when it is pressed.
> If I don't have the sheet protected it moves to the right. The cells are
> not locked either. What do I need to do to get it to move right?
> Thanks

 
Reply With Quote
 
Jean-Yves
Guest
Posts: n/a
 
      10th Jan 2008
Hello,

Basically, this written procedure looks like the result of the macro recorder.
Like :
range.select
select. dop something
Why select. Just do it on the same line
That is a start to gain processing time.
The next thing to make it faster is to stop the screen update before your
procedure runs
application.Screenupdating = false
'code
application.Screenupdating = True



--
Regards

Jean-Yves Tfelt
Europe


"ranswert" wrote:

> Also, is there a way to make this procedure shorter? It's a little slow.
> Maybe there is a faster way to make it work.
>
> "ranswert" wrote:
>
> > I have written the following procedure:
> >
> > Sub addestimateitem()
> > Dim cboxno, itemno As Integer
> > unprotectsheet
> > itemno = ActiveSheet.Range("estitemnum") + 1
> > Range("estitemnum").Value = itemno
> > cboxno = ActiveSheet.Range("estcboxnum") + 1
> > Range("estcboxnum").Value = cboxno
> > Range("esttotal").Select
> > ActiveCell.Offset(itemno, 0).Name = "esttotalamt"
> > Range("estno").Select
> > ActiveCell.Offset(itemno, 0).Select
> > Selection.EntireRow.Insert
> > ActiveCell.Value = itemno
> > Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 3)).Select
> > mergecells
> > Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2)).Select
> > mergecells
> > ActiveCell.EntireRow.Cells(11).Value = cboxno
> > ActiveCell.Offset(0, -4).Select
> > Selection.RowHeight = 12.75
> > Selection.Font.Bold = False
> > Selection.Font.Size = 10
> > Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 5)).Select
> > Selection.Font.Bold = False
> > Range(ActiveCell.Offset(0, -2), ActiveCell.Offset(0, 4)).Select
> > addborders
> > ActiveCell.Offset(0, 1).Select
> > Selection.Borders(xlEdgeRight).LineStyle = xlNone
> > Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 3)).Select
> > Selection.Locked = False
> > Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4)).Select
> > Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> > With Selection.Font
> > .Name = "Arial"
> > .Size = 10
> > .Strikethrough = False
> > .Superscript = False
> > .Subscript = False
> > .OutlineFont = False
> > .Shadow = False
> > .Underline = xlUnderlineStyleNone
> > .ColorIndex = xlAutomatic
> > End With
> > ActiveCell.Offset(0, 1).Select
> > ActiveCell.FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
> > ActiveCell.Offset(0, -6).Select
> > addcheckbox
> > Range("esttotal").Select
> > Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(itemno, 0)).Select
> > Selection.Name = "esttotalscol"
> > Range("esttotalamt").Select
> > Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> > With Selection.Font
> > .Name = "Arial"
> > .FontStyle = "Bold"
> > .Size = 10
> > .Strikethrough = False
> > .Superscript = False
> > .Subscript = False
> > .OutlineFont = False
> > .Shadow = False
> > .Underline = xlUnderlineStyleNone
> > .ColorIndex = xlAutomatic
> > End With
> > ActiveCell.FormulaR1C1 = "=sum(esttotalscol)"
> > Range("estsubven").Select
> > ActiveCell.Offset(itemno, 0).Select
> > protectsheet
> >
> >
> > End Sub
> >
> > When the procedure is done and i press the enter key the curser move up a
> > few rows and over one column instead of moving to the right one column. I
> > have the settings set for the curser to move to the right when it is pressed.
> > If I don't have the sheet protected it moves to the right. The cells are
> > not locked either. What do I need to do to get it to move right?
> > Thanks

 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      10th Jan 2008

"ranswert" <(E-Mail Removed)> skrev i en meddelelse
news:83885C56-0CDB-404A-9291-(E-Mail Removed)...
> Also, is there a way to make this procedure shorter? It's a little slow.
> Maybe there is a faster way to make it work.
>
> "ranswert" wrote:
>
>> I have written the following procedure:
>>
>> Sub addestimateitem()
>> Dim cboxno, itemno As Integer
>> unprotectsheet
>> itemno = ActiveSheet.Range("estitemnum") + 1
>> Range("estitemnum").Value = itemno
>> cboxno = ActiveSheet.Range("estcboxnum") + 1
>> Range("estcboxnum").Value = cboxno
>> Range("esttotal").Select
>> ActiveCell.Offset(itemno, 0).Name = "esttotalamt"
>> Range("estno").Select
>> ActiveCell.Offset(itemno, 0).Select
>> Selection.EntireRow.Insert
>> ActiveCell.Value = itemno
>> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 3)).Select
>> mergecells
>> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2)).Select
>> mergecells
>> ActiveCell.EntireRow.Cells(11).Value = cboxno
>> ActiveCell.Offset(0, -4).Select
>> Selection.RowHeight = 12.75
>> Selection.Font.Bold = False
>> Selection.Font.Size = 10
>> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 5)).Select
>> Selection.Font.Bold = False
>> Range(ActiveCell.Offset(0, -2), ActiveCell.Offset(0, 4)).Select
>> addborders
>> ActiveCell.Offset(0, 1).Select
>> Selection.Borders(xlEdgeRight).LineStyle = xlNone
>> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 3)).Select
>> Selection.Locked = False
>> Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4)).Select
>> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
>> With Selection.Font
>> .Name = "Arial"
>> .Size = 10
>> .Strikethrough = False
>> .Superscript = False
>> .Subscript = False
>> .OutlineFont = False
>> .Shadow = False
>> .Underline = xlUnderlineStyleNone
>> .ColorIndex = xlAutomatic
>> End With
>> ActiveCell.Offset(0, 1).Select
>> ActiveCell.FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
>> ActiveCell.Offset(0, -6).Select
>> addcheckbox
>> Range("esttotal").Select
>> Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(itemno, 0)).Select
>> Selection.Name = "esttotalscol"
>> Range("esttotalamt").Select
>> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
>> With Selection.Font
>> .Name = "Arial"
>> .FontStyle = "Bold"
>> .Size = 10
>> .Strikethrough = False
>> .Superscript = False
>> .Subscript = False
>> .OutlineFont = False
>> .Shadow = False
>> .Underline = xlUnderlineStyleNone
>> .ColorIndex = xlAutomatic
>> End With
>> ActiveCell.FormulaR1C1 = "=sum(esttotalscol)"
>> Range("estsubven").Select
>> ActiveCell.Offset(itemno, 0).Select
>> protectsheet
>>
>>
>> End Sub
>>
>> When the procedure is done and i press the enter key the curser move up a
>> few rows and over one column instead of moving to the right one column.
>> I
>> have the settings set for the curser to move to the right when it is
>> pressed.
>> If I don't have the sheet protected it moves to the right. The cells
>> are
>> not locked either. What do I need to do to get it to move right?
>> Thanks


Hi

Setting Application.Screenupdating=false will speed your code up, just
remember to set it =True at the end of your code.

Also refering to the cells rather than selecting the cells will boost the
code.

I have tried to apply the consderations above into your code, see below.
Though, I am not sure all the "Offset" statements are offsetting to the
right cells, but I will leave that to you...

Regards,
Per


Sub addestimateitem()
Dim CboxNo As Integer, ItemNo As Integer
Dim tCell As Range
Dim mCell As Range
Application.ScreenUpdating = False
unprotectsheet
ItemNo = ActiveSheet.Range("estitemnum") + 1
Range("estitemnum").Value = ItemNo
CboxNo = ActiveSheet.Range("estcboxnum") + 1
Range("estcboxnum").Value = CboxNo
Range("esttotal").Offset(ItemNo, 0).Name = "esttotalamt"
Set tCell = Range("estno").Offset(ItemNo, 0)
tCell.EntireRow.Insert
tCell.Value = ItemNo
Set mCell = tCell.Offset(0, 2)
Range(mCell, mCell.Offset(0, 1)).Merge
Set mCell = tCell.Offset(0, 4)
Range(mCell, mCell.Offset(0, 1)).Merge
tCell.EntireRow.Cells(11).Value = CboxNo
With tCell
.RowHeight = 12.75
.Font.Bold = False
.Font.Size = 10
End With
Set mCell = tCell.Offset(0, 2)
Range(mCell, tCell.Offset(0, 5)).Font.Bold = False
Range(tCell, tCell.Offset(0, 6)).Select
addborders
Set tCell = tCell.Offset(0, 1)
tCell.Borders(xlEdgeRight).LineStyle = xlNone
Set mCell = Range(tCell.Offset(0, 1), tCell.Offset(0, 3))
mCell.Locked = False
Set mCell = Range(tCell.Offset(0, 3), ActiveCell.Offset(0, 4))
mCell.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
With mCell.Font
.Name = "Arial"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
mCell.Offset(0, 1).FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
tCell.Select
addcheckbox
Set mCell = Range("esttotal").Offset(1, 0)
Range(mCell, mCell.Offset(ItemNo, 0)).Name = "esttotalscol"
Range("esttotalamt").NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
With Range("esttotalamt").Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("esttotalamt").FormulaR1C1 = "=sum(esttotalscol)"
Range("estsubven").Offset(ItemNo, 0).Select
protectsheet

Application.ScreenUpdating = True
End Sub


 
Reply With Quote
 
ranswert
Guest
Posts: n/a
 
      10th Jan 2008
I will give that a try.
Thanks for your help

"Per Jessen" wrote:

>
> "ranswert" <(E-Mail Removed)> skrev i en meddelelse
> news:83885C56-0CDB-404A-9291-(E-Mail Removed)...
> > Also, is there a way to make this procedure shorter? It's a little slow.
> > Maybe there is a faster way to make it work.
> >
> > "ranswert" wrote:
> >
> >> I have written the following procedure:
> >>
> >> Sub addestimateitem()
> >> Dim cboxno, itemno As Integer
> >> unprotectsheet
> >> itemno = ActiveSheet.Range("estitemnum") + 1
> >> Range("estitemnum").Value = itemno
> >> cboxno = ActiveSheet.Range("estcboxnum") + 1
> >> Range("estcboxnum").Value = cboxno
> >> Range("esttotal").Select
> >> ActiveCell.Offset(itemno, 0).Name = "esttotalamt"
> >> Range("estno").Select
> >> ActiveCell.Offset(itemno, 0).Select
> >> Selection.EntireRow.Insert
> >> ActiveCell.Value = itemno
> >> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 3)).Select
> >> mergecells
> >> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2)).Select
> >> mergecells
> >> ActiveCell.EntireRow.Cells(11).Value = cboxno
> >> ActiveCell.Offset(0, -4).Select
> >> Selection.RowHeight = 12.75
> >> Selection.Font.Bold = False
> >> Selection.Font.Size = 10
> >> Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 5)).Select
> >> Selection.Font.Bold = False
> >> Range(ActiveCell.Offset(0, -2), ActiveCell.Offset(0, 4)).Select
> >> addborders
> >> ActiveCell.Offset(0, 1).Select
> >> Selection.Borders(xlEdgeRight).LineStyle = xlNone
> >> Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 3)).Select
> >> Selection.Locked = False
> >> Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4)).Select
> >> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> >> With Selection.Font
> >> .Name = "Arial"
> >> .Size = 10
> >> .Strikethrough = False
> >> .Superscript = False
> >> .Subscript = False
> >> .OutlineFont = False
> >> .Shadow = False
> >> .Underline = xlUnderlineStyleNone
> >> .ColorIndex = xlAutomatic
> >> End With
> >> ActiveCell.Offset(0, 1).Select
> >> ActiveCell.FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
> >> ActiveCell.Offset(0, -6).Select
> >> addcheckbox
> >> Range("esttotal").Select
> >> Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(itemno, 0)).Select
> >> Selection.Name = "esttotalscol"
> >> Range("esttotalamt").Select
> >> Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> >> With Selection.Font
> >> .Name = "Arial"
> >> .FontStyle = "Bold"
> >> .Size = 10
> >> .Strikethrough = False
> >> .Superscript = False
> >> .Subscript = False
> >> .OutlineFont = False
> >> .Shadow = False
> >> .Underline = xlUnderlineStyleNone
> >> .ColorIndex = xlAutomatic
> >> End With
> >> ActiveCell.FormulaR1C1 = "=sum(esttotalscol)"
> >> Range("estsubven").Select
> >> ActiveCell.Offset(itemno, 0).Select
> >> protectsheet
> >>
> >>
> >> End Sub
> >>
> >> When the procedure is done and i press the enter key the curser move up a
> >> few rows and over one column instead of moving to the right one column.
> >> I
> >> have the settings set for the curser to move to the right when it is
> >> pressed.
> >> If I don't have the sheet protected it moves to the right. The cells
> >> are
> >> not locked either. What do I need to do to get it to move right?
> >> Thanks

>
> Hi
>
> Setting Application.Screenupdating=false will speed your code up, just
> remember to set it =True at the end of your code.
>
> Also refering to the cells rather than selecting the cells will boost the
> code.
>
> I have tried to apply the consderations above into your code, see below.
> Though, I am not sure all the "Offset" statements are offsetting to the
> right cells, but I will leave that to you...
>
> Regards,
> Per
>
>
> Sub addestimateitem()
> Dim CboxNo As Integer, ItemNo As Integer
> Dim tCell As Range
> Dim mCell As Range
> Application.ScreenUpdating = False
> unprotectsheet
> ItemNo = ActiveSheet.Range("estitemnum") + 1
> Range("estitemnum").Value = ItemNo
> CboxNo = ActiveSheet.Range("estcboxnum") + 1
> Range("estcboxnum").Value = CboxNo
> Range("esttotal").Offset(ItemNo, 0).Name = "esttotalamt"
> Set tCell = Range("estno").Offset(ItemNo, 0)
> tCell.EntireRow.Insert
> tCell.Value = ItemNo
> Set mCell = tCell.Offset(0, 2)
> Range(mCell, mCell.Offset(0, 1)).Merge
> Set mCell = tCell.Offset(0, 4)
> Range(mCell, mCell.Offset(0, 1)).Merge
> tCell.EntireRow.Cells(11).Value = CboxNo
> With tCell
> .RowHeight = 12.75
> .Font.Bold = False
> .Font.Size = 10
> End With
> Set mCell = tCell.Offset(0, 2)
> Range(mCell, tCell.Offset(0, 5)).Font.Bold = False
> Range(tCell, tCell.Offset(0, 6)).Select
> addborders
> Set tCell = tCell.Offset(0, 1)
> tCell.Borders(xlEdgeRight).LineStyle = xlNone
> Set mCell = Range(tCell.Offset(0, 1), tCell.Offset(0, 3))
> mCell.Locked = False
> Set mCell = Range(tCell.Offset(0, 3), ActiveCell.Offset(0, 4))
> mCell.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> With mCell.Font
> .Name = "Arial"
> .Size = 10
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
> mCell.Offset(0, 1).FormulaR1C1 = "=IF(RC[2],RC[-1],0)"
> tCell.Select
> addcheckbox
> Set mCell = Range("esttotal").Offset(1, 0)
> Range(mCell, mCell.Offset(ItemNo, 0)).Name = "esttotalscol"
> Range("esttotalamt").NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
> With Range("esttotalamt").Font
> .Name = "Arial"
> .FontStyle = "Bold"
> .Size = 10
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
> Range("esttotalamt").FormulaR1C1 = "=sum(esttotalscol)"
> Range("estsubven").Offset(ItemNo, 0).Select
> protectsheet
>
> Application.ScreenUpdating = True
> End Sub
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA: Column Select then Data Select then return to cell A1 James C Microsoft Excel Misc 3 1st Feb 2010 11:35 AM
HELP W/ VBA: SELECT RANGE, ALLCAPS, CELL COLOR, RETURN TO BLANK CELL/PATTERN CELL extremejobtvshow@gmail.com Microsoft Excel Programming 5 28th Jun 2008 07:49 PM
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON CAPTGNVR Microsoft Excel Programming 2 8th Jul 2007 04:18 PM
error in excel help. how to select a cell after clicking the Select All button? Dmitriy Kopnichev Microsoft Excel Misc 3 5th Dec 2003 10:32 PM
error in excel help. how to select a cell after clicking the Select All button? Dmitriy Kopnichev Microsoft Excel Discussion 1 5th Dec 2003 10:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:56 AM.