Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

  #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?

  #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.

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

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