Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 17th, 2007, 12:30 PM
Authorized User
Join Date: Jul 2007
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy data into cell by cell

It was little bit confusing when I explain earlier.
If anyone can give some solution using vba will be exciting for me.
Currently I am using formula which work great but when user delete or insert a row which left #Ref# in formula cell.

My data is like example below.

Account Dept Debit credit
 1222 88 12.00
 1556 99 345.52
 6689 45.63 45.63
 5589 20 25.56

Actually I was trying to copy user’s input data into another worksheet. Like when user key in data in Sheet1, cellA1, CeLLA2, CellA3, B1, B2, B3... etc the same data I want to copy into sheet2 cell A1, B1,B2, B3 in a specific format. All I want to add pipe (|) at the end of each cell of data. And in Column A and B's data I want (` `) single quote sounding Ex.(`1222`| `88`|12 | ) the data. Rest (Column C and D) no quote.

One more thing if no data on debit column I want to use | (pipe) on beginning and end of data of credit column.. like |345.52|

So the final data I like to see is as follows

`1556`|`99`| |345.52|
`6689`| |45.63|45.63 |

Thanks for your valuable time.

Reply With Quote
  #2 (permalink)  
Old August 31st, 2007, 07:51 PM
Registered User
Join Date: Aug 2007
Location: , , Russia.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

1. Do you want that it makes when user to put data in cells? Or do you want that it works for thick range with data?
2. "|" - is it border of cells or symbol?

Reply With Quote
  #3 (permalink)  
Old September 4th, 2007, 11:50 AM
Authorized User
Join Date: Jul 2007
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

Just to separate each field of data, another word kind of delimiters.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy from cell A3 workbookA into cell A3 workbookB mona_upm84 Excel VBA 1 September 5th, 2008 01:31 AM
Copy cell into userform? Cabbage VB How-To 2 April 29th, 2008 07:04 AM
copy columns based on cell values EricB123 Excel VBA 0 December 18th, 2007 12:51 AM
if the cell content is a part of another cell cont sriramus Excel VBA 1 November 15th, 2005 10:20 AM
Lose cell Text when editing cell in VSFlexGrid 6 bobcratchet VB How-To 0 July 30th, 2004 09:32 AM

All times are GMT -4. The time now is 08:58 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.