Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
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
 
Old May 4th, 2010, 01:23 PM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBA code to reorder fields

I am looking for a vba code that will create a new row for each value to the right of data in a column and also concatenate certain fields. I will ultimately be saving this data in csv format so that a program can read the data, so the format is very important. I listed an example below in csv format. any help on this would be greatly apperciated.
Thank you,
Joshua

CURRENT FORMAT
Username,Access1,Access2,Access3,
John Doe,Yes,Yes,Yes,
Jane Doe,no ,no ,no,

DESIRED FORMAT
John doe,Access1 Yes,
John Doe,Access2 Yes,
John doe,Access3 Yes,
Jane Doe,Access1 no,
Jane Doe,Access2 no,
Jane Doe,Access3 no,





Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming fields in access table using VBA imaley Access VBA 13 August 13th, 2009 02:22 PM
VBA code to Search All Text Fields on a form dezmond2 BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 1 July 7th, 2007 11:58 AM
How to add fields to an existing table using VBA donrafeal Access VBA 3 March 22nd, 2006 06:11 PM
Fields object syntax in VBA query stepdev Access VBA 11 March 3rd, 2006 04:53 PM
Using VBA to define query fields??? mmcdonal Access VBA 0 November 24th, 2004 03:45 PM





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