Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Perform Row Function Using Macro

I need to use a macro to perform a function (clean) to an entire row.
normally i would record a macro, and then go from there. in this case, i
would use another row as a buffer then paste special. that seems like a lot
of unnecesary code.

there has to be a more eloquent way to do this. using memory spaces, i'd
assume. just not sure how.

thanks,
mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Perform Row Function Using Macro

would it be something with a For/End loop?

-m

"mvyvoda" wrote:

I need to use a macro to perform a function (clean) to an entire row.
normally i would record a macro, and then go from there. in this case, i
would use another row as a buffer then paste special. that seems like a lot
of unnecesary code.

there has to be a more eloquent way to do this. using memory spaces, i'd
assume. just not sure how.

thanks,
mark

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Perform Row Function Using Macro

rows(2).ClearContents

or

Rows(2).Clear

otherwise, define what a clean function is.

--
Regards,
Tom Ogilvy


"mvyvoda" wrote in message
...
I need to use a macro to perform a function (clean) to an entire row.
normally i would record a macro, and then go from there. in this case, i
would use another row as a buffer then paste special. that seems like a

lot
of unnecesary code.

there has to be a more eloquent way to do this. using memory spaces, i'd
assume. just not sure how.

thanks,
mark



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Perform Row Function Using Macro

I guess i was looking for something like this... but this doesn't work yet :-/

Do
ActiveCell.Value = WorksheetFunction.Clean(ActiveCell.Offset(0,
1).Value)
Loop Until IsEmpty(ActiveCell.Offset(0, 1))

i need the entire row to go through the "Clean" worksheetfunction.

-m

"Tom Ogilvy" wrote:

rows(2).ClearContents

or

Rows(2).Clear

otherwise, define what a clean function is.

--
Regards,
Tom Ogilvy


"mvyvoda" wrote in message
...
I need to use a macro to perform a function (clean) to an entire row.
normally i would record a macro, and then go from there. in this case, i
would use another row as a buffer then paste special. that seems like a

lot
of unnecesary code.

there has to be a more eloquent way to do this. using memory spaces, i'd
assume. just not sure how.

thanks,
mark




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Perform Row Function Using Macro

Do
ActiveCell.Value = _
WorksheetFunction.Clean(ActiveCell.Offset(0,1).Val ue)
ActiveCell.offset(0,1).Select
Loop Until IsEmpty(ActiveCell.Offset(0, 1))

--
Regards,
Tom Ogilvy

"mvyvoda" wrote in message
...
I guess i was looking for something like this... but this doesn't work yet

:-/

Do
ActiveCell.Value = WorksheetFunction.Clean(ActiveCell.Offset(0,
1).Value)
Loop Until IsEmpty(ActiveCell.Offset(0, 1))

i need the entire row to go through the "Clean" worksheetfunction.

-m

"Tom Ogilvy" wrote:

rows(2).ClearContents

or

Rows(2).Clear

otherwise, define what a clean function is.

--
Regards,
Tom Ogilvy


"mvyvoda" wrote in message
...
I need to use a macro to perform a function (clean) to an entire row.
normally i would record a macro, and then go from there. in this case,

i
would use another row as a buffer then paste special. that seems like

a
lot
of unnecesary code.

there has to be a more eloquent way to do this. using memory spaces,

i'd
assume. just not sure how.

thanks,
mark






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
I cannot perform this function PLEASE HELP! Sunny Excel Worksheet Functions 5 March 10th 08 08:20 PM
What function does ^ perform in a formula Mickford Excel Worksheet Functions 1 October 15th 07 06:25 PM
perform 1 function, stop, perform different function nastech Excel Discussion (Misc queries) 0 August 22nd 06 12:21 PM
Challenging Macro to perform evaluate function on each cell qwertyjuan Excel Programming 5 November 20th 05 07:30 PM
Getting a macro to perform a function on a certain day every week. Ian M[_2_] Excel Programming 2 July 19th 04 03:30 AM


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