|
-
Dec 26th, 2005, 06:54 AM
#1
Thread Starter
New Member
please help in grouping rows of excel throgh vb6.0 code
i have generated an excel sheet through vb 6.0
it contains four columns and 200 rows
now i want to group the rows on one clolumn which is fx currency
for eg
if 100 rows contains usd as fx curr
i have to group the rows
and if next 100 rows contains euro as fx curr
i have to group these rows
please help in this
-
Dec 26th, 2005, 06:55 AM
#2
Re: please help in grouping rows of excel throgh vb6.0 code
Welcome to the Forums. 
Moved from CodeBank.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 26th, 2005, 08:13 AM
#3
Re: please help in grouping rows of excel throgh vb6.0 code
You could sort:
VB Code:
Range("A1:D200").sort("A:A")
which will change the rows around, or to only display certain types at any one time just set a filter (select the first column, then Tools, Autofilter).
zaza
-
Dec 27th, 2005, 08:11 AM
#4
Frenzied Member
Re: please help in grouping rows of excel throgh vb6.0 code
How is the currency identified? Where is the identification?
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Dec 28th, 2005, 09:29 AM
#5
Re: please help in grouping rows of excel throgh vb6.0 code
Hi,
I may have misunderstood earlier - do you have the currency typed in as text ("Euro", "£", "$") or is it the formatting of the cell?
if the latter, then you could do something like the following in a button:
Assuming your data is in cells B1:E200
VB Code:
for i = 1 to 200
cells(i,1) = cells(i,2).numberformat
next i
range("A1:E200").sort Key1:=range("A1:a200")
You could make column A hidden or thin or in white text, if you liked...
HTH
zaza
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|