Re: $$Excel-Macros$$ Re: Number sequentially, skipping blank cells

2011-01-07 Thread Maries
Find the attached file...


Rgds, Maries

On Fri, Jan 7, 2011 at 12:46 PM, siti Vi villager.g...@gmail.com wrote:

 please check this formula (written in A2)

 =IF(A1=COUNTA($B$2:B2),,COUNTA($B$2:B2))

 best regards,



 On Fri, Jan 7, 2011 at 1:06 PM, Rahul Gandhi myname.ra...@gmail.comwrote:

 Can you please let us know what exactly you require in output

 On Jan 7, 4:01 am, scoobysnack88 scoobysnac...@gmail.com wrote:
  Does anyone have a formula or vbs to accomplish the sequential
  numbering as listed here?  The rows with no information would get a
  nill and the next cell would not break the number sequence.
 
  1   5t67
  2   g786
  3   1234r
 
  4   ty765
  5   24567u
 
  6   78ytr89
  7   56ytre
  8   re45789
  9   2ewqs78
  10  45iyunhg


 --

 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Solved By Maries.xls
Description: MS-Excel spreadsheet


Re: $$Excel-Macros$$ Multiple Selection of cells copying the same using macro

2011-01-07 Thread Raj Mahapatra
kindly help on this

On Thu, Jan 6, 2011 at 6:03 PM, Raj Mahapatra rajafs...@gmail.com wrote:

 hi group,

 requesting you to tell me the macro codes for Multiple Selection of cells
  copying the same

 thanks

 Rajesh

 --

 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Re: $$Excel-Macros$$ Multiple Selection of cells copying the same using macro

2011-01-07 Thread ashish koul
can you send sample sheet

On 1/7/11, Raj Mahapatra rajafs...@gmail.com wrote:
 kindly help on this

 On Thu, Jan 6, 2011 at 6:03 PM, Raj Mahapatra rajafs...@gmail.com wrote:

 hi group,

 requesting you to tell me the macro codes for Multiple Selection of cells
  copying the same

 thanks

 Rajesh

 --

 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


 --
 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts



-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com http://akoul.blogspot.com/
*akoul*.wordpress.com http://akoul.wordpress.com/
My Linkedin Profile http://in.linkedin.com/pub/ashish-koul/10/400/830


P Before printing, think about the environment.

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Re: $$Excel-Macros$$ How to get the system name using macro

2011-01-07 Thread Rajesh K R
Hi
Thanks for the code , its what I want exactly.

Regards
Rajesh kainikkara


On 1/7/11, lawrence hordy lawreph...@gmail.com wrote:
 is this how you name your computer ?

 On Thu, Jan 6, 2011 at 3:47 PM, Daniel dcolarde...@free.fr wrote:

 Hi,

 MsgBox Environ(computername)

 Regards.

 Daniel

 -Message d'origine-
 De : excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com]
 De
 la part de Rajesh K R
 Envoyé : jeudi 6 janvier 2011 16:14
 À : excel-macros
 Objet : $$Excel-Macros$$ How to get the system name using macro

 Hi Experts
 How can I get the the computer name on which the macro is running.

 Regards

 Rajesh kainikkara

 --

 
 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip 2. Join our LinkedIN group @
 http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and
 Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts

 --

 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts




 --
   Have  you  written  your  own  operating  system  yet  ?Have  you
 written  your  own  operating  system  yet  ?Have  you  written  your
 own  operating  system  yet  ?Have  you  written  your  own
 operating  system  yet  ?Have  you  written  your  own  operating
 system  yet  ?Have  you  written  your  own  operating  system  yet
 ?Have  you  written  your  own  operating  system  yet  ?  

 --
 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Re: $$Excel-Macros$$ Multiple Selection of cells copying the same using macro

2011-01-07 Thread Paul Schreiner
Raj,

I'm sorry to say that this post has been largely ignored 
because it contains almost no usable information!
---
requesting you to tell me
OK.. you're asking a question...

the macro codes
Since you're here, we can assume it's VBA macro syntax
for one of the versions of Excel.

Multiple Selection of cells
Are the cells contiguous/sequential?
In which case you would use:
Range(A1:Z65000).Select

Or does your worksheet have a Named Range? Like SalesRange?
In which case:
Range(SalesRange).Select
would work

Or.. does your macro have a variable that defines the range?
Like:
...
Dim MyRange as Range
...
Set MyRange = Range(A1:Z65000)
...
MyRange.Select

 copying the same
Copy WHAT? 
Values? Formats? column widths?
  
copy to where? 
The same worksheet?
A different sheet in the same workbook?
A different workbook?
A different APPLICATION? (copy Excel values to Word or Outlook!)



To copy the selected Range to the Clipboard, you could use:

Range(A1:A65000).Select
Selection.Copy

Of course, to copy to the clipboard, you don't
REALLY have to select the range explicitly.

Range(A1:A65000).Copy

does the same thing.

Now, if you want to copy and PASTE the data.

Then you could use:
Range(A3:A7).Copy
Range(B3).Select
ActiveSheet.Paste

should do the trick.

But then, you don't have to use the clipboard!

If you want to copy the CONTENTS of the cells (not formatting)
You could use:

Range(B3:B7).Value = Range(A3:A7).Value
-

Of course, if the multiple selection of cells is
not contiguous, then the above all changes!

Have you tried to record a macro to do what you want and see 
what code is generated?

What have you tried?
What is causing you problems?

In order to get some group members to be willing to jump in and help
without spending HUGE amounts of time answering questions that 
do not apply to you at all, you should give us more information 
to work with... Like:

In Excel 2007, I have a macro that creates 2000 rows of data.
I need to locate the  values in each row and copy the
values to another worksheet.
The values may be in any column, but can be recognized by .
What is the best approach for this?

Paul




From: Raj Mahapatra rajafs...@gmail.com
To: excel-macros@googlegroups.com
Sent: Fri, January 7, 2011 3:15:14 AM
Subject: Re: $$Excel-Macros$$ Multiple Selection of cells  copying the same 
using macro

kindly help on this


On Thu, Jan 6, 2011 at 6:03 PM, Raj Mahapatra rajafs...@gmail.com wrote:

hi group,

requesting you to tell me the macro codes for Multiple Selection of cells  
copying the same

thanks 

Rajesh-- 
--

Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com/
4. Learn VBA Macros at http://www.quickvba.blogspot.com/
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com/

To post to this group, send email to excel-macros@googlegroups.com
 

Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts

-- 
--

Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
 

Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


$$Excel-Macros$$ Need Help Getting Text To Align Left

2011-01-07 Thread Erick C
Hello everybody,

I am in desperate need of some assistance, and I am hoping someone may
be able to give me a hand.  I am still a bit of a novice when it comes
to vba code writing, so I am hoping that it may just be something that
I am not aware of.
I have some code that makes a string of text using a row of data in
Excel.  I need a few parts of the text to be formatted to fit 6
spaces, regardless of how few letters or numbers are in the cell in
Excel, since many times there are only 2 or 3 characters in the cell
(ex. AA or A1).  Sometimes the cell may even be blank.
Right now I am using the following:

StrOut = StrOut  StrDelim  Format(Cells(R, 33).Value, @@)

This gets 6 spaces if there is any text in the Excel cell, but
everything is aligned on the right.  I need to have the text to be
left justified in order to be able to import it into another system.
Also, if the Excel cell is blank it does not give me six blank spaces
in the text, which is what I would need.

Does anybody have any tips or suggestions that may help me out?  I
have been looking everywhere online for something that may be able to
help with no success.

Thanks.

Erick

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Re: $$Excel-Macros$$ Need Help Getting Text To Align Left

2011-01-07 Thread ashish koul
can you attach the sample sheet

On Fri, Jan 7, 2011 at 8:40 PM, Erick C boricua2...@gmail.com wrote:

 Hello everybody,

 I am in desperate need of some assistance, and I am hoping someone may
 be able to give me a hand.  I am still a bit of a novice when it comes
 to vba code writing, so I am hoping that it may just be something that
 I am not aware of.
 I have some code that makes a string of text using a row of data in
 Excel.  I need a few parts of the text to be formatted to fit 6
 spaces, regardless of how few letters or numbers are in the cell in
 Excel, since many times there are only 2 or 3 characters in the cell
 (ex. AA or A1).  Sometimes the cell may even be blank.
 Right now I am using the following:

 StrOut = StrOut  StrDelim  Format(Cells(R, 33).Value, @@)

 This gets 6 spaces if there is any text in the Excel cell, but
 everything is aligned on the right.  I need to have the text to be
 left justified in order to be able to import it into another system.
 Also, if the Excel cell is blank it does not give me six blank spaces
 in the text, which is what I would need.

 Does anybody have any tips or suggestions that may help me out?  I
 have been looking everywhere online for something that may be able to
 help with no success.

 Thanks.

 Erick

 --

 --
 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links :
 http://twitter.com/exceldailytip
 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials at http://www.excel-macros.blogspot.com
 4. Learn VBA Macros at http://www.quickvba.blogspot.com
 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below link
 http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts




-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com http://akoul.blogspot.com/
*akoul*.wordpress.com http://akoul.wordpress.com/
My Linkedin Profile http://in.linkedin.com/pub/ashish-koul/10/400/830


P Before printing, think about the environment.

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Re: $$Excel-Macros$$ Need Help Getting Text To Align Left

2011-01-07 Thread Paul Schreiner
Align-left and Align-Right is irrelevent (I think)
because alignment is a paragraph property, not a string property.

What you're saying is that you need the string padded 
with spaces either on the left or right...

So, by example, if you were padding with underscores (_),
then the results you're looking for are:
__
X_
XX
XXX___
__
X_
XX

If your value is in Cell B1, then a Cell Function would be:
=B1REPT(_,6-LEN(B1))
(or using   to pad with spaces.

In VBA, your solution would be:

StrOut = StrOut  StrDelim _
 Cells(R, 33).Value  _
Application.WorksheetFunction.Rept( , 6 - Len(Cells(R, 33).Value))


Paul




From: Erick C boricua2...@gmail.com
To: MS EXCEL AND VBA MACROS excel-macros@googlegroups.com
Sent: Fri, January 7, 2011 10:10:09 AM
Subject: $$Excel-Macros$$ Need Help Getting Text To Align Left

Hello everybody,

I am in desperate need of some assistance, and I am hoping someone may
be able to give me a hand.  I am still a bit of a novice when it comes
to vba code writing, so I am hoping that it may just be something that
I am not aware of.
I have some code that makes a string of text using a row of data in
Excel.  I need a few parts of the text to be formatted to fit 6
spaces, regardless of how few letters or numbers are in the cell in
Excel, since many times there are only 2 or 3 characters in the cell
(ex. AA or A1).  Sometimes the cell may even be blank.
Right now I am using the following:

StrOut = StrOut  StrDelim  Format(Cells(R, 33).Value, @@)

This gets 6 spaces if there is any text in the Excel cell, but
everything is aligned on the right.  I need to have the text to be
left justified in order to be able to import it into another system.
Also, if the Excel cell is blank it does not give me six blank spaces
in the text, which is what I would need.

Does anybody have any tips or suggestions that may help me out?  I
have been looking everywhere online for something that may be able to
help with no success.

Thanks.

Erick

-- 
--

Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


$$Excel-Macros$$ Fwd: need help

2011-01-07 Thread Rajasekhar Praharaju
Hi ,

 In this sheet i am trying to place vlookup for multiple fields yaar

it should through the description and date in AG column basing on list of
activities.
but i should get this in horizontal basis..

can anyone  plz help me in this concern.

for example
if one activity is performed twice which is shown on top left hand corner.

IRS Publications  activity has two line items then it should come as against
the J102 which is IRS Publications it should through up the description and
date in this manner

   pdf28 Monday, January 03, 2011,pdf24 Monday, January 03, 2011

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


query.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet


Re: $$Excel-Macros$$ Need Help Getting Text To Align Left

2011-01-07 Thread Erick C
Paul -

Thank you, this is exactly what I was looking for!

On Jan 7, 11:37 am, Paul Schreiner schreiner_p...@att.net wrote:
 Align-left and Align-Right is irrelevent (I think)
 because alignment is a paragraph property, not a string property.

 What you're saying is that you need the string padded
 with spaces either on the left or right...

 So, by example, if you were padding with underscores (_),
 then the results you're looking for are:
 __
 X_
 XX
 XXX___
 __
 X_
 XX

 If your value is in Cell B1, then a Cell Function would be:
 =B1REPT(_,6-LEN(B1))
 (or using   to pad with spaces.

 In VBA, your solution would be:

 StrOut = StrOut  StrDelim _
  Cells(R, 33).Value  _
 Application.WorksheetFunction.Rept( , 6 - Len(Cells(R, 33).Value))

 Paul

 
 From: Erick C boricua2...@gmail.com
 To: MS EXCEL AND VBA MACROS excel-macros@googlegroups.com
 Sent: Fri, January 7, 2011 10:10:09 AM
 Subject: $$Excel-Macros$$ Need Help Getting Text To Align Left

 Hello everybody,

 I am in desperate need of some assistance, and I am hoping someone may
 be able to give me a hand.  I am still a bit of a novice when it comes
 to vba code writing, so I am hoping that it may just be something that
 I am not aware of.
 I have some code that makes a string of text using a row of data in
 Excel.  I need a few parts of the text to be formatted to fit 6
 spaces, regardless of how few letters or numbers are in the cell in
 Excel, since many times there are only 2 or 3 characters in the cell
 (ex. AA or A1).  Sometimes the cell may even be blank.
 Right now I am using the following:

 StrOut = StrOut  StrDelim  Format(Cells(R, 33).Value, @@)

 This gets 6 spaces if there is any text in the Excel cell, but
 everything is aligned on the right.  I need to have the text to be
 left justified in order to be able to import it into another system.
 Also, if the Excel cell is blank it does not give me six blank spaces
 in the text, which is what I would need.

 Does anybody have any tips or suggestions that may help me out?  I
 have been looking everywhere online for something that may be able to
 help with no success.

 Thanks.

 Erick

 --
 ---­---

 Some important links for excel users:
 1. Follow us on TWITTER for tips tricks and links 
 :http://twitter.com/exceldailytip
 2. Join our LinkedIN group @http://www.linkedin.com/groups?gid=1871310
 3. Excel tutorials athttp://www.excel-macros.blogspot.com
 4. Learn VBA Macros athttp://www.quickvba.blogspot.com
 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com

 To post to this group, send email to excel-macros@googlegroups.com

 
 Like our page on facebook , Just follow below 
 linkhttp://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall;...

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


$$Excel-Macros$$ Distribution-Supply Chain/Retail Sector

2011-01-07 Thread Ramkesh Maurya
Dear All,

*Wish u a happy New Year -2011.*

Can anybody help me in distributiing Stocks from Warehouse to Branches.

For example current position of DEL Warehouse is

 *DEL Warehouse* *Noida* *Gurgaon* *Faridabad* 100  (20)
50 (10)

(Data in brackets is negative i.e. shortage in the Branches)

Now I want to distribute the available Stock (in this case it is 100 in DEL
Warehouse) in Branches :-

 *DEL Warehouse* *Noida* *Gurgaon* *Faridabad*(20)
(10)

I have allocated 20 to Noida and 10 to Faridabad but not allocated any stock
to Gurgaon as there is no Shortage

*1-Please suggest me if there is any formule that can allocate quantity
itself in branches ?*

Here a problem arises When I have not enough Stock In the Warehouse. Suppose
I have only 25 available quantity in Warehouse and demand is 30 ( 20
Noida+10 Faridabad) then

*2-Is there any method to consider the priority for Branches ?*
Thanks  Regards
Ramkesh Maurya
Cell: 9958723273

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


$$Excel-Macros$$ Fixing chain of if then statements

2011-01-07 Thread larry
I have a series of if then statements that trigger different
instructions, numbered by Phase. Ideally, I only need the first one
that applies. If I get a second true if then stement that changes the
path and the program goes off track.
Is there a better way to write the following:

Phase=6
If No_Ass = No_Res Then Phase = 0
if Lo_op  0 Then Phase = 2
if No_Zeros = 0 Then Phase = 3

I tried elseif but it could not find the end if, even though I added
one.

Thanks

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


Fwd: $$Excel-Macros$$ Fwd: need help

2011-01-07 Thread Rajasekhar Praharaju
Hi ,

Please help me in this concern,

 In this sheet i am trying to place vlookup for multiple fields yaar

it should through the description and date in AG column basing on list of
activities.
but i should get this in horizontal basis..

can anyone  plz help me in this concern.

for example
if one activity is performed twice which is shown on top left hand corner.

IRS Publications  activity has two line items then it should come as against
the J102 which is IRS Publications it should through up the description and
date in this manner

   pdf28 Monday, January 03, 2011,pdf24 Monday, January 03, 2011

 --
-Thanks,
Raj

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


query.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet


Re: $$Excel-Macros$$ Fwd: need help

2011-01-07 Thread Rajasekhar Praharaju
Please find the attached sheet i could able to build formula for single line
item

But i want if the criteria is having mulitple line items the results should
display as

Date description, Date description, Date description.

Please help me in this concern,

Thanks,
Raj

On Sat, Jan 8, 2011 at 10:49 AM, Rajasekhar Praharaju 
rajasekhar.prahar...@gmail.com wrote:



 Hi ,

 Please help me in this concern,

  In this sheet i am trying to place vlookup for multiple fields yaar

 it should through the description and date in AG column basing on list of
 activities.
 but i should get this in horizontal basis..

 can anyone  plz help me in this concern.

 for example
 if one activity is performed twice which is shown on top left hand corner.

 IRS Publications  activity has two line items then it should come as
 against the J102 which is IRS Publications it should through up the
 description and date in this manner

pdf28 Monday, January 03, 2011,pdf24 Monday, January 03, 2011

  --
 -Thanks,
 Raj


-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com


Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wallref=ts


query with formula.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet