PC Review


Reply
 
 
=?Utf-8?B?ZHJpbGxlcg==?=
Guest
Posts: n/a
 
      9th Jul 2007
Hello again,

i read sometime ago about a macro about a macro that can embed formula in a
worksheet...
(e.g)
I have one workbook...
it may have one or more worksheets...
I need to run a macro that can embed the required formulas......
in the last column of the spreadsheet from Row 1 to Row 7, corresponding to
the *count* of each error.type RESULTS that exist in the CURRENT SHEET
only.....

Hence, after i run the simple macro, i have a sheet report on the last
column, showing the count of each type of error...

the last row and the last column, shall not be included in the *count-of*..
Note: the sheet may contain merged cells.

thanks and regards,
driller

--
*****
birds of the same feather flock together..

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      10th Jul 2007
Your project will require many more details to be able to give specific code,
but maybe this will help for starters........it puts a simple formula in B1
and copies down column B as far as there is data in column A

Sub Macro1()
'Install formula in B1 and fill down equal to column A
Range("B1").Select
ActiveCell.Value = "=2*a1"
Selection.AutoFill Destination:=Range("b1:b" & _
Cells(Rows.Count, 1).End(xlUp).Row)
End Sub

Vaya con Dios,
Chuck, CABGx3




"driller" wrote:

> Hello again,
>
> i read sometime ago about a macro about a macro that can embed formula in a
> worksheet...
> (e.g)
> I have one workbook...
> it may have one or more worksheets...
> I need to run a macro that can embed the required formulas......
> in the last column of the spreadsheet from Row 1 to Row 7, corresponding to
> the *count* of each error.type RESULTS that exist in the CURRENT SHEET
> only.....
>
> Hence, after i run the simple macro, i have a sheet report on the last
> column, showing the count of each type of error...
>
> the last row and the last column, shall not be included in the *count-of*..
> Note: the sheet may contain merged cells.
>
> thanks and regards,
> driller
>
> --
> *****
> birds of the same feather flock together..
>

 
Reply With Quote
 
=?Utf-8?B?ZHJpbGxlcg==?=
Guest
Posts: n/a
 
      10th Jul 2007
Thanks CLR
sorry for a late reply,
first i try to look for the formula to count each type of error occurence
in the sheet.. i place the *array* formula on IV65536,
{=SUM(IF(ISERROR(A1:IU65535),ERROR.TYPE(A1:IU65535)=1))}
then pop-up warn!
"Excel cannot complete this task with available resources. Choose less data
or close other applications Continue without undo?"<OK,Cancel>

Maybe it will be better not to copy/paste a formula,...to count the 7 error
types..
Only by macro could give me a a Quick count..

e.g
IV1=count of *error.type 1*
IV2=count of *error.type 2*
IV3=count of *error.type 3*
IV4=count of *error.type 4*
IV5=count of *error.type 5*
IV6=count of *error.type 6*
IV7=count of *error.type 7*

i hope this make sense..
regards,
driller

--
*****
birds of the same feather flock together..



"CLR" wrote:

> Your project will require many more details to be able to give specific code,
> but maybe this will help for starters........it puts a simple formula in B1
> and copies down column B as far as there is data in column A
>
> Sub Macro1()
> 'Install formula in B1 and fill down equal to column A
> Range("B1").Select
> ActiveCell.Value = "=2*a1"
> Selection.AutoFill Destination:=Range("b1:b" & _
> Cells(Rows.Count, 1).End(xlUp).Row)
> End Sub
>
> Vaya con Dios,
> Chuck, CABGx3
>
>
>
>
> "driller" wrote:
>
> > Hello again,
> >
> > i read sometime ago about a macro about a macro that can embed formula in a
> > worksheet...
> > (e.g)
> > I have one workbook...
> > it may have one or more worksheets...
> > I need to run a macro that can embed the required formulas......
> > in the last column of the spreadsheet from Row 1 to Row 7, corresponding to
> > the *count* of each error.type RESULTS that exist in the CURRENT SHEET
> > only.....
> >
> > Hence, after i run the simple macro, i have a sheet report on the last
> > column, showing the count of each type of error...
> >
> > the last row and the last column, shall not be included in the *count-of*..
> > Note: the sheet may contain merged cells.
> >
> > thanks and regards,
> > driller
> >
> > --
> > *****
> > birds of the same feather flock together..
> >

 
Reply With Quote
 
=?Utf-8?B?ZHJpbGxlcg==?=
Guest
Posts: n/a
 
      10th Jul 2007
CLR,
Please advise if i need make a new thread to have a fresh look of my query...

regards,
driller
--
*****
birds of the same feather flock together..



"CLR" wrote:

> Your project will require many more details to be able to give specific code,
> but maybe this will help for starters........it puts a simple formula in B1
> and copies down column B as far as there is data in column A
>
> Sub Macro1()
> 'Install formula in B1 and fill down equal to column A
> Range("B1").Select
> ActiveCell.Value = "=2*a1"
> Selection.AutoFill Destination:=Range("b1:b" & _
> Cells(Rows.Count, 1).End(xlUp).Row)
> End Sub
>
> Vaya con Dios,
> Chuck, CABGx3
>
>
>
>
> "driller" wrote:
>
> > Hello again,
> >
> > i read sometime ago about a macro about a macro that can embed formula in a
> > worksheet...
> > (e.g)
> > I have one workbook...
> > it may have one or more worksheets...
> > I need to run a macro that can embed the required formulas......
> > in the last column of the spreadsheet from Row 1 to Row 7, corresponding to
> > the *count* of each error.type RESULTS that exist in the CURRENT SHEET
> > only.....
> >
> > Hence, after i run the simple macro, i have a sheet report on the last
> > column, showing the count of each type of error...
> >
> > the last row and the last column, shall not be included in the *count-of*..
> > Note: the sheet may contain merged cells.
> >
> > thanks and regards,
> > driller
> >
> > --
> > *****
> > birds of the same feather flock together..
> >

 
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
Macro recorded... tabs & file names changed, macro hangs Steve Microsoft Excel Worksheet Functions 3 30th Oct 2009 11:41 AM
::: Sort macro with empty lines at the end. ::: Macro de tri avec lignes vide en bas. infojacques@gmail.com Microsoft Excel Discussion 2 5th Jul 2007 11:40 AM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor karll@swfab.com Microsoft Excel Programming 2 30th Mar 2007 07:48 PM
Run Macro On Open event for report and SetValue Macro has wierd error ThompsonJessical@yahoo.com Microsoft Access Macros 2 2nd Aug 2005 05:51 PM
Start Macro / Stop Macro / Restart Macro Pete Microsoft Excel Programming 2 21st Nov 2003 05:04 PM


Features
 

Advertising
 

Newsgroups
 


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