Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Intro Programming
|
Intro Programming What is a loop? Which language is best for beginners? What is "object oreinted?" All those types of questions and more are welcome here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Intro Programming 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 November 11th, 2005, 08:29 AM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ned vba code immediately, please help

Hi all,

please help me to write a vba code to do the following

i need to a vba code with 1 row and 4 columns for every unique record, with the duplicates deleted(as the data in few row cells is the same) and the data that is different in all the 3 row cells of a column to be merged into a single cell.


below is the example.here each data is equivlent to data in a single cell

sri 29 fruit banana
sri 29 fruit apple
sri 29 fruit gova
mes 30 carrot veg
mes 30 radish veg

the output i want to be is as shown below

sri 29 fruit bananan
                             apple
                            gova
mes 30 carrot veg
                radish

The row height should be automatically adjusted depending on the number of cells merged/combined
Reply With Quote
  #2 (permalink)  
Old June 19th, 2006, 07:15 AM
Authorized User
 
Join Date: Jun 2006
Posts: 73
Thanks: 1
Thanked 1 Time in 1 Post
Default

Chiluka, it really depends on which langauge you're working in. I can assist if you're using any version of Visual Basic,(I think you'd need to use what's called a FlexiGrid, and control the output) Please respond. liamfitz

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code works in Excel VBA but not Access VBA fossx Access VBA 2 May 21st, 2007 08:00 AM
current changes are not saving immediately venkys C# 1 January 27th, 2006 11:01 AM
Session expires immediately codebuyer Classic ASP Components 6 March 18th, 2005 12:54 PM
Please Respond immediately sainaidu SQL Server 2000 2 August 10th, 2003 08:25 AM





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