| View previous topic :: View next topic |
| Author |
Message |
asianking Expert Cheater
Reputation: 0
Joined: 25 Jun 2008 Posts: 109
|
Posted: Mon Jun 06, 2011 5:42 pm Post subject: need help with excel |
|
|
Is there a way I can call a formula that automatic adds comma's to any data entered in rows A onto B2? So for example:
A1: red
A2: blue ------> B2: red, blue, white
A3: white
So any data enter after A3 will automatic added to B2 with a comma before it.
B2: red, blue, white, green
_________________
|
|
| Back to top |
|
 |
samuelarnold How do I cheat?
Reputation: 0
Joined: 07 Jun 2011 Posts: 6
|
Posted: Tue Jun 07, 2011 4:13 am Post subject: |
|
|
Formula for adding commas, i think no way...
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Tue Jun 07, 2011 11:23 am Post subject: |
|
|
Formula no, but you could write a vb macro that could do this.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
asianking Expert Cheater
Reputation: 0
Joined: 25 Jun 2008 Posts: 109
|
Posted: Fri Jun 10, 2011 6:04 pm Post subject: |
|
|
you mind get me a head start? I'm not too familiar with vb codes for excel. It's not like the same command as visual basic.
_________________
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Fri Jun 10, 2011 8:09 pm Post subject: |
|
|
I'm not really good with VB Macros either. Alot of the stuff we use at work used to be Excel and macros but we have been moving away from them.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
lucidity Advanced Cheater
Reputation: 0
Joined: 16 Feb 2011 Posts: 91
|
Posted: Fri Jun 10, 2011 9:37 pm Post subject: |
|
|
I think it'll be like this (untested):
Dim Value = Worksheets("Your-Worksheet-Name").Range("A1:A1").Value
Value &= ", "
Value &= Worksheets("Your-Worksheet-Name").Range("A2:A2").Value
Value &= ","
Value &= Worksheets("Your-Worksheet-Name").Range("A3:A3").Value
_________________
» Antec Twelve Hundred Full Tower » EVGA E760 CLASSIFIED » EVGA GeForce GTX 580 SuperClocked 1536MB » i7-980XE » CORSAIR DOMINATOR 6GB PC3 12800 DDR3 » OS: Intel X25-M SSD » Game Storage: Raid-0 2 x WD VelociRaptor 10000 RPM » CE Cache Drive: 500GB WD Caviar » Power Supply: OCZ Z Series Gold 1000W |
|
| Back to top |
|
 |
asianking Expert Cheater
Reputation: 0
Joined: 25 Jun 2008 Posts: 109
|
Posted: Sun Jun 12, 2011 4:40 pm Post subject: |
|
|
not sure what version you using, but mine doesn't work with those codes.
_________________
|
|
| Back to top |
|
 |
InternetIsSeriousBusiness Grandmaster Cheater Supreme
Reputation: 8
Joined: 12 Jul 2010 Posts: 1268
|
Posted: Sun Jun 12, 2011 6:53 pm Post subject: |
|
|
| asianking wrote: | | not sure what version you using, but mine doesn't work with those codes. |
Then, what version are YOU using?
_________________
FLAME FLAME FLAME!!!@@@ |
|
| Back to top |
|
 |
asianking Expert Cheater
Reputation: 0
Joined: 25 Jun 2008 Posts: 109
|
Posted: Sun Jun 12, 2011 7:51 pm Post subject: |
|
|
2007...Thanks for the tip, but I got it to work after doing some research.
Point A is the actual codes. Point B is to auto run the macro upon open the file so I don't have to press a shortcut keys to just run macro or press run.
[/img]
_________________
|
|
| Back to top |
|
 |
|