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 data in cells

I have a row of cells that have last names in them, is there a way I can
insert some data into all of the cells, this data will be the same for
all names.

Ex

Before jones1
After (alias=jones1)

then if possible export all of the names to a word or text file all in
one line.

Ex (alias=jones1)(alias=smith2)(alias=johnson3)


Thanks for any help!!!!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting data in cells

dim cell as Range
for each cell in rows(2).Cells
if not isempty(cell.value) then
Cell.Value = "(alias=" & cell.Value & ")"
else
exit for
endif
Next

--
Regards,
Tom Ogilvy

bt707 wrote in message
...
I have a row of cells that have last names in them, is there a way I can
insert some data into all of the cells, this data will be the same for
all names.

Ex

Before jones1
After (alias=jones1)

then if possible export all of the names to a word or text file all in
one line.

Ex (alias=jones1)(alias=smith2)(alias=johnson3)


Thanks for any help!!!!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Inserting data in cells

If you don't mind doing this manually;
setup a formula in another row
then paste the values of the formula cells back into the original cells
delete the formulas

example:
B2 value is -- jones1

B4 formula -- "(alias="& B2 &")"

B4 value will equal -- (alias=jones1)

now copy B4 and PasteSpecial Values into B2

then clear all from B4

This could also be automated, reply if you need more help

"bt707" wrote in message
...
I have a row of cells that have last names in them, is there a way I can
insert some data into all of the cells, this data will be the same for
all names.

Ex

Before jones1
After (alias=jones1)

then if possible export all of the names to a word or text file all in
one line.

Ex (alias=jones1)(alias=smith2)(alias=johnson3)


Thanks for any help!!!!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Blocked from Inserting individual cells or Insert Cut Cells Ching-AHS Excel Discussion (Misc queries) 0 December 1st 09 05:47 PM
Inserting data to next available empty cells Dave Excel Discussion (Misc queries) 2 April 19th 09 01:28 PM
Inserting data between cells Smoop Excel Worksheet Functions 1 October 18th 06 07:07 PM
Inserting new data before "calculating cells" is done??? Fecozisk Excel Discussion (Misc queries) 3 July 19th 06 03:19 AM
Inserting cells between cells with text Cynthia Excel Discussion (Misc queries) 4 March 30th 06 07:55 PM


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