Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default where/how to insert a function

I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default where/how to insert a function

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default where/how to insert a function

Hi Ron
It worked. Thanks a lot. I have a question.
You mentioned: sh.Columns("A:C").Copy
How it would be if want to copy non-adjacent columns like: Colums A,B,D,E,G?
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Ron de Bruin" wrote:

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default where/how to insert a function

Your solution puts columns next to each other. Is there a solution to add
columns to end of previous columns.
In other words, in master sheet, number of columns remain same but number of
raws increase?
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Ron de Bruin" wrote:

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default where/how to insert a function

You can try:
sh.Range("A:B,D:E,G:G").Copy

-Simon

"Khoshravan" wrote:

Hi Ron
It worked. Thanks a lot. I have a question.
You mentioned: sh.Columns("A:C").Copy
How it would be if want to copy non-adjacent columns like: Colums A,B,D,E,G?
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Ron de Bruin" wrote:

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default where/how to insert a function

It gives: RUN-time error 13, Type mismatch
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"SimonCC" wrote:

You can try:
sh.Range("A:B,D:E,G:G").Copy

-Simon

"Khoshravan" wrote:

Hi Ron
It worked. Thanks a lot. I have a question.
You mentioned: sh.Columns("A:C").Copy
How it would be if want to copy non-adjacent columns like: Colums A,B,D,E,G?
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Ron de Bruin" wrote:

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default where/how to insert a function

I think I got the answer to my own question.
I think the consolidate command will do what I want. Add data to end of
previous raws
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Khoshravan" wrote:

Your solution puts columns next to each other. Is there a solution to add
columns to end of previous columns.
In other words, in master sheet, number of columns remain same but number of
raws increase?
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan


"Ron de Bruin" wrote:

Hi

See my reply in one of your other threads

On my site you an read this

Where do I place the code and the functions?
1. Alt-F11
2. InsertModule from the Menubar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Khoshravan" wrote in message ...
I am trying to copy a macro with a function from www.rondebruin.nl/copy2.htm
site.
It has explained how to enter the MAcro but not mentioned how/where to
insert the function. how should I do this? sorry for simple question but it
is my first time use function command in excel.
--
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan

where/how to insert a function




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
Is it possible to insert a function within a sentence in Excel 200 Mal Excel Worksheet Functions 1 April 5th 06 09:33 PM
function to insert a picture movermike Excel Worksheet Functions 2 November 17th 05 11:01 PM
Is it possible to insert a macro command in an "IF" function? SandyLACA Excel Worksheet Functions 4 November 8th 05 10:46 PM
pethow do i insert a Yes/No function into a cell in Excel? petethomson Excel Discussion (Misc queries) 1 September 14th 05 05:11 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 10:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"