Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I append the same text to multiple cells?

I want to add a "" to each cell in a column of cells when the cell isn't
blank. I'm doing this in a macro for multiple workbooks, so I want the
fastest/most efficient way possible.

My current idea is:
Given the column with text is column A, insert a new row with the formula
=IF(T(A2)<"",""&A2,"") and drag that formula down, then paste special
values over into the location I want the data.
Is there a better way?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How do I append the same text to multiple cells?

This should be very quick. Just select the cells and run the macro:

Sub mike()
For Each r In Selection
If IsEmpty(r.Value) Then
Else
r.Value = r.Value & ""
End If
Next
End Sub

--
Gary's Student
gsnu200706


"mike herman" wrote:

I want to add a "" to each cell in a column of cells when the cell isn't
blank. I'm doing this in a macro for multiple workbooks, so I want the
fastest/most efficient way possible.

My current idea is:
Given the column with text is column A, insert a new row with the formula
=IF(T(A2)<"",""&A2,"") and drag that formula down, then paste special
values over into the location I want the data.
Is there a better way?

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
Append multiple columns Tony S.[_2_] Excel Discussion (Misc queries) 1 March 31st 10 11:14 PM
append multiple columns Tony S.[_2_] Excel Discussion (Misc queries) 2 March 31st 10 11:05 PM
Append text Jeff Excel Discussion (Misc queries) 1 February 16th 07 10:28 PM
How do I append same text to all the cells in a column at once? Abhijit Bamishte Excel Worksheet Functions 4 December 15th 06 07:26 PM
How can you append text in multiple cells in excel? Shane New Users to Excel 4 October 19th 05 10:49 PM


All times are GMT +1. The time now is 10:27 PM.

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"