Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting Records

I would like to know how to

insert a record within a list of data which groups
automatically selected records (A bit like what adding
subtotals does) which will contain different types of
formulas like a vlookup.

I want this instruction to be added automatically either
by a button or when a new group of records has started to
be entered.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Records

rows(3).Insert
Rows(3).Cells(1,1).Formula = "=Vlookup(""abc"",Sheet2!A1:Z26,8,False)"


Beyond that, you would need to provide more details on what you want.


Regards,
Tom Ogilvy


"Gary Constable" wrote in message
...
I would like to know how to

insert a record within a list of data which groups
automatically selected records (A bit like what adding
subtotals does) which will contain different types of
formulas like a vlookup.

I want this instruction to be added automatically either
by a button or when a new group of records has started to
be entered.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting Records

I Want the macro or code to select all the data within a
list. Approx 10 columns by 5000+ rows.

At each change in a particular columb i want the macro to
insert a new row and add all the values with in that group
per column (like inserting subtotal) but as well as adding
i want it to insert forumlas that i specify as well, like
a vlookup.

Regards,

Gary


-----Original Message-----
rows(3).Insert
Rows(3).Cells(1,1).Formula = "=Vlookup(""abc"",Sheet2!

A1:Z26,8,False)"


Beyond that, you would need to provide more details on

what you want.


Regards,
Tom Ogilvy


"Gary Constable" wrote in

message
...
I would like to know how to

insert a record within a list of data which groups
automatically selected records (A bit like what adding
subtotals does) which will contain different types of
formulas like a vlookup.

I want this instruction to be added automatically either
by a button or when a new group of records has started

to
be entered.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Records

Why not start by turning on the macro recorder and use the subtotal function
under the data menu. This will get 90% of the work done with one line of
code. Then you can add code to achive the rest.

--
Regards,
Tom Ogilvy



"Gary" wrote in message
...
I Want the macro or code to select all the data within a
list. Approx 10 columns by 5000+ rows.

At each change in a particular columb i want the macro to
insert a new row and add all the values with in that group
per column (like inserting subtotal) but as well as adding
i want it to insert forumlas that i specify as well, like
a vlookup.

Regards,

Gary


-----Original Message-----
rows(3).Insert
Rows(3).Cells(1,1).Formula = "=Vlookup(""abc"",Sheet2!

A1:Z26,8,False)"


Beyond that, you would need to provide more details on

what you want.


Regards,
Tom Ogilvy


"Gary Constable" wrote in

message
...
I would like to know how to

insert a record within a list of data which groups
automatically selected records (A bit like what adding
subtotals does) which will contain different types of
formulas like a vlookup.

I want this instruction to be added automatically either
by a button or when a new group of records has started

to
be entered.



.



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
Duplicate Records JillC Excel Discussion (Misc queries) 2 January 21st 10 07:31 PM
Unique Records Ronan Excel Worksheet Functions 3 January 19th 10 04:11 PM
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
Macro help inserting records by date sequence. Richard Excel Discussion (Misc queries) 4 September 18th 07 11:05 PM
Records Christine Excel Discussion (Misc queries) 1 January 11th 07 04:29 PM


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