Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Running a macro to concatenate

I have a spreadsheet with over 1000 lines of entries

12 34 east side west side anyname
23 44 North south again
45 77 Totonto Canada Klein
this is street
45 90 where enough sure
66 20 noway sure GONE

Most lines contain 5 entries
I want to concatenate into col A ONLY the lines that have 3 entries
I have written the macro (called MACRO 3) to do the concatenating.
I would like a program that would check the entire sheet .Other wise I have
to
run my macro(Macro 3) on each line manually.
Can it be done?
Hel[
Thanks





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Running a macro to concatenate

Not too sure on how to do that
can you give me a sample of code
and where to place the code
Thanks


"Cesar Zapata" wrote in message
...
you need to use a loop.

dim cell as range

for each cell in range("your range")

'your macro here

next cell






"pcor" wrote in message
le.rogers.com...
I have a spreadsheet with over 1000 lines of entries

12 34 east side west side anyname
23 44 North south again
45 77 Totonto Canada Klein
this is street
45 90 where enough sure
66 20 noway sure GONE

Most lines contain 5 entries
I want to concatenate into col A ONLY the lines that have 3 entries
I have written the macro (called MACRO 3) to do the concatenating.
I would like a program that would check the entire sheet .Other wise I

have
to
run my macro(Macro 3) on each line manually.
Can it be done?
Hel[
Thanks









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
Concatenate using Macro Gaura215 Excel Discussion (Misc queries) 0 February 9th 11 02:07 PM
Disable running of SelectionChange macro when in another macro? Tonso Excel Discussion (Misc queries) 6 March 21st 10 06:50 PM
Event Macro running another macro inside K1KKKA Excel Discussion (Misc queries) 1 December 20th 06 08:21 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
Concatenate Macro osaka78 Excel Discussion (Misc queries) 6 April 9th 06 01:34 PM


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