Re: $$Excel-Macros$$ Help with code please.

2012-02-21 Thread dguillett1
If End With Next wks End Sub Regards, Sam Mathai Chacko On Tue, Feb 21, 2012 at 8:03 PM, dguillett1 dguille...@gmail.com wrote: This will look in all sheets in the file and select if found. Put it in your DIR loop for all files in the folder. Sub lookinallsheets() For Each ws

Re: $$Excel-Macros$$ Help with code please.

2012-02-21 Thread dguillett1
@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of dguillett1 Sent: Tuesday, February 21, 2012 11:42 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Help with code please. Sam, The code I provided does stop the macro with the selection. Yes, goto could

Re: $$Excel-Macros$$ Help with code please.

2012-02-21 Thread dguillett1
I have to disagree. If the workbook has the text you are looking for in more than one sheet, the code will go forward and the last sheet that has the word being looked for will be selected. Regards, Sam On Wed, Feb 22, 2012 at 3:03 AM, dguillett1 dguille...@gmail.com wrote: Asa, Agree about

Re: $$Excel-Macros$$ Help with code please.

2012-02-22 Thread dguillett1
, Sam On Wed, Feb 22, 2012 at 6:40 AM, dguillett1 dguille...@gmail.com wrote: Computer is tired and going to be early but after I asked the same question the OP said “ There will never be more than 1 of the same number. I just need it to select the sheet that it's on and then select

Re: $$Excel-Macros$$ macro to sort excel data email to party

2012-02-22 Thread dguillett1
Why is YOUR request more HIGH PRIORITY than others. Some of us take this differently than you might desire. DELETE. Don Guillett SalesAid Software dguille...@gmail.com From: Amit Desai (MERU) Sent: Tuesday, February 21, 2012 11:46 PM To: excel-macros@googlegroups.com Subject: FW:

Re: $$Excel-Macros$$ Help on gathering duplicate summing and counting

2012-02-22 Thread dguillett1
, but it suited me for doing another thing in another report, but i needed in a macro format in order to delete the data whenever i pull a report, dguillett1 was exactly as i wanted :). thank you very much both of you. 2012/2/20 dguillett1 dguille...@gmail.com I didn’t do columns F G so use this Sub

Re: $$Excel-Macros$$ Help with code please.

2012-02-23 Thread dguillett1
] On Behalf Of dguillett1 Sent: Tuesday, February 21, 2012 1:34 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Help with code please. Asa, Agree about the “undue attention”. My experience tells me that just leaving it out ( as I did) serves the purpose. Maybe you can time

Re: $$Excel-Macros$$ Chart Template Dynamic for Different Users

2012-02-23 Thread dguillett1
That’s because the defined name was not referenced in the chart sources. series=smith.xls!definedname Don Guillett SalesAid Software dguille...@gmail.com From: John A. Smith Sent: Thursday, February 23, 2012 9:25 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Chart

Re: $$Excel-Macros$$ instead of formula need macros

2012-02-24 Thread dguillett1
send a file with a complete explanation. Don Guillett SalesAid Software dguille...@gmail.com From: lokesh Sent: Friday, February 24, 2012 7:20 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ instead of formula need macros Hi All, I am using this formula to extract the

Re: $$Excel-Macros$$ instead of formula need macros

2012-02-24 Thread dguillett1
No helper =SUMPRODUCT((WEEKDAY($G$2:$G$17)1)*(WEEKDAY($G$2:$G$17)7)*($H$2:$H$17=B3)) Don Guillett SalesAid Software dguille...@gmail.com From: Lokesh Loki Sent: Friday, February 24, 2012 9:15 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ instead of formula need macros Hi

Re: $$Excel-Macros$$ If data is on list sheet move row to correct zone

2012-02-24 Thread dguillett1
You mention “paste” sheet which indicates that this is something you copy and paste from ?, it may be better to have an additional column with the zone there and simply filter. More explanation___? What you want can be done using FINDNEXT. Don Guillett SalesAid Software

Re: $$Excel-Macros$$ Time capture (NOW)

2012-02-24 Thread dguillett1
Or, you could use a double click event macro to do a time stamp target=time Don Guillett SalesAid Software dguille...@gmail.com -Original Message- From: krishnanm2...@gmail.com Sent: Friday, February 24, 2012 12:15 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Time

Re: $$Excel-Macros$$ plz check and help on the attached sheet the Call Macro to combine the macros is not working...

2012-02-25 Thread dguillett1
Could it be because you do NOT have any macros with those names? Don Guillett SalesAid Software dguille...@gmail.com From: Mohammed Muneer Sent: Saturday, February 25, 2012 1:00 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ plz check and help on the attached sheet the Call

Re: $$Excel-Macros$$ Avg. Revisit in number of days

2012-02-26 Thread dguillett1
Perhaps a full explanation and examples would help. Don Guillett SalesAid Software dguille...@gmail.com From: Amit Desai (MERU) Sent: Thursday, February 23, 2012 10:42 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Avg. Revisit in number of days Dear All, With the help of

Re: $$Excel-Macros$$ help needed??

2012-02-26 Thread dguillett1
How about a macro solution. Change “I” to “H” Sub gettitlesSAS() Dim r As Long Dim c As Long Dim ms As String For r = 2 To Cells(Rows.Count, 1).End(xlUp).Row ms = For c = 3 To Cells(1, Columns.Count).End(xlToLeft).Column If UCase(Cells(r, c)) = Y Then ms = ms , Cells(1, c) Next c Cells(r, I)

Re: $$Excel-Macros$$ Pivot uncheck All

2012-02-26 Thread dguillett1
http://www.contextures.com/xlPivot05.html http://www.ozgrid.com/VBA/pivot-table-fields.htm or this idea For Each pf In pt.DataFields pf.Orientation = xlHidden Next pf Don Guillett SalesAid Software dguille...@gmail.com From: Kiran Kancharla Sent: Sunday, February 26, 2012 12:15 PM To:

Re: $$Excel-Macros$$ Excude some sheets in macro

2012-02-27 Thread dguillett1
You have been doing this awhile and should know better. Anyway. Sub copycorrectsheets() Dim ws As Worksheet For Each ws In Worksheets If ws.Name Summary _ And ws.Name forms _ And ws.Name admin Then ws.Range(G7).CurrentRegion.Copy _ Worksheets(summary).Cells(Rows.Count, G).End(xlUp)(2) End If

Re: $$Excel-Macros$$ If I input Letter Y is should show the current date.......(28-Feb-2012) like this......

2012-02-28 Thread dguillett1
Right click sheet tabview code insert this Now whenever you input y or Y in col B, col A will get the date Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count 1 Or Target.Column 2 Then Exit Sub If UCase(Target) = Y Then Target.Offset(, -1) = Date End Sub Don Guillett SalesAid

Re: $$Excel-Macros$$ Excude some sheets in macro

2012-02-28 Thread dguillett1
, dguillett1 dguille...@gmail.com wrote: You have been doing this awhile and should know better. Anyway. Sub copycorrectsheets() Dim ws As Worksheet For Each ws In Worksheets If ws.Name Summary _ And ws.Name forms _ And ws.Name admin Then ws.Range(G7).CurrentRegion.Copy _ Worksheets

Re: $$Excel-Macros$$ If I input Letter Y is should show the current date.......(28-Feb-2012) like this......

2012-02-28 Thread dguillett1
Don, You made it simple... Thanks. On Tue, Feb 28, 2012 at 6:37 PM, dguillett1 dguille...@gmail.com wrote: That will change tomorrow with the next calculation Don Guillett SalesAid Software dguille...@gmail.com From: hilary lomotey Sent: Tuesday, February 28, 2012 7:53 AM To: excel

Re: $$Excel-Macros$$ Suppress the Disable Macros / Enable Macros Dialog.

2012-02-28 Thread dguillett1
Ask yourself if you would want someone to change yours.. Don Guillett SalesAid Software dguille...@gmail.com -Original Message- From: Mari Krishnamoorthi K Sent: Tuesday, February 28, 2012 2:10 PM To: MS EXCEL AND VBA MACROS Cc: mariseka...@hotmail.com Subject: $$Excel-Macros$$

Re: $$Excel-Macros$$ Copy Sheet and Name the sheet with todays date

2012-02-29 Thread dguillett1
Or this which copies template to the end. Private Sub Workbook_Open() Dim mydate As String mydate = Format(Date, dd-mm-) With Sheets(Sheets.Count) If .Name mydate Then Sheets(Template).Copy after:=Sheets(.Index) ActiveSheet.Name = mydate End If End With End Sub Don Guillett SalesAid

Re: $$Excel-Macros$$ Help on gathering duplicate summing and counting

2012-02-29 Thread dguillett1
but now the control is not A- Order but cell Z - Shop, how can i turn this around, is it done in the code line: If Cells(i + 1, 1) = Cells(i, 1) do i have to change the 1 to the correspondent Column of Z? Thank you again :). 2012/2/22 dguillett1 dguille...@gmail.com Glad to help Don

Re: $$Excel-Macros$$ Re: sheet updation macro

2012-02-29 Thread dguillett1
Send file Don Guillett SalesAid Software dguille...@gmail.com From: Avinash Sent: Wednesday, February 29, 2012 9:26 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: sheet updation macro Dear Don Guillett / Maries , i saw your previous reply for the subject If I input

Re: $$Excel-Macros$$ Urgent: Need Help (Assignment)

2012-02-29 Thread dguillett1
Is this “homework” for an excel class? Don Guillett SalesAid Software dguille...@gmail.com From: Mani Sent: Wednesday, February 29, 2012 11:27 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Urgent: Need Help (Assignment) Hi Guys, I am new in excel and have to do this

Re: $$Excel-Macros$$ Un-selecting a cell being copied

2012-02-29 Thread dguillett1
This will copy just the values from the source to the dest. Ranges MUST be the same size range(destination).value=range(source).value This is much better and the same as range(source).copy range(dest).paste.pastespecial Don Guillett SalesAid Software dguille...@gmail.com -Original

Re: $$Excel-Macros$$ Urgent: Need Help (Assignment)

2012-02-29 Thread dguillett1
@googlegroups.com Subject: Re: $$Excel-Macros$$ Urgent: Need Help (Assignment) Well I thought I'd give it to him for the honesty, but then, can't go against the rules. Speaking of excel classes, I wish we had that back in those days. Sam On Thu, Mar 1, 2012 at 1:10 AM, dguillett1 dguille...@gmail.com

Re: $$Excel-Macros$$ Un-selecting a cell being copied

2012-02-29 Thread dguillett1
ideas? Robb On Feb 29, 3:00 pm, dguillett1 dguille...@gmail.com wrote: This will copy just the values from the source to the dest. Ranges MUST be the same size range(destination).value=range(source).value This is much better and the same as range(source).copy range(dest).paste.pastespecial Don

Re: $$Excel-Macros$$ indirect function help

2012-02-29 Thread dguillett1
Due to spaces in sheet name. I ALWAYS avoid. Don Guillett SalesAid Software dguille...@gmail.com -Original Message- From: LearnExcel Sent: Wednesday, February 29, 2012 4:33 PM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ indirect function help HI team, can you please help

Re: $$Excel-Macros$$ Avg. Revisit in number of days

2012-03-01 Thread dguillett1
...see column AQ (row 636, 766, 955 981). Need result in number of days terms.. Thanks in advance. Best Regards, Amit From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of dguillett1 Sent: 26 February 2012 19:47 To: excel-macros@googlegroups.com Subject

Re: $$Excel-Macros$$ Un-selecting a cell being copied

2012-03-01 Thread dguillett1
this message: run-time error '1004': Method 'Range' of object'_Global' failed I'm definitely a novice when it comes to thisanything obvious I'm missing? Thanks. Robb On Feb 29, 4:55 pm, dguillett1 dguille...@gmail.com wrote: range(a2:z223).copy range(a1).paste pastevalues Don Guillett

Re: $$Excel-Macros$$ number spliting formula

2012-03-01 Thread dguillett1
How do you want to split it? Just use =TEXT(NOW(),mmm) for the month Don Guillett SalesAid Software dguille...@gmail.com From: danial mansoor Sent: Thursday, March 01, 2012 11:24 AM To: excel-macros@googlegroups.com ; noorain.ans...@gmail.com ; grug...@gmail.com Subject: $$Excel-Macros$$

Re: Fwd: $$Excel-Macros$$ condition problem in data receive from another sheet

2012-03-03 Thread dguillett1
I’m not sure what you want. If?? you want to get all data from sheet2 for the data just use datafilterautofilterfilter on the datecopy. Develop a macro to do it for you. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Ashish Bhalara Sent: Friday, March 02, 2012

Re: $$Excel-Macros$$ Macro to compare highlight and copy value to a new sheet

2012-03-03 Thread dguillett1
send a file Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: trawets Sent: Saturday, March 03, 2012 12:51 PM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ Macro to compare highlight and copy value to a new sheet Hi I have a

Re: $$Excel-Macros$$ how to save file in 2 different locations

2012-03-04 Thread dguillett1
I personally like the methods mentioned in David’s web site. Wonder why? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: xlstime Sent: Sunday, March 04, 2012 6:45 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ how to save file in 2 different

Re: $$Excel-Macros$$ Need advise

2012-03-04 Thread dguillett1
google utube excel Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: rekha siri Sent: Sunday, March 04, 2012 1:11 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Need advise hi Experts, I Am excel trainer, just wanted to know how can we place

Re: $$Excel-Macros$$ Split Number into multiple cell

2012-03-05 Thread dguillett1
Why not just use datatext to columnsfixed width Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: ICWAI Help Sent: Monday, March 05, 2012 7:58 AM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ Split Number into multiple cell Hi

Re: $$Excel-Macros$$ Hi Expert- please spend your few minute only on this question.

2012-03-05 Thread dguillett1
Google is your friend. excel version differences Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Divaker Pandey Sent: Monday, March 05, 2012 8:53 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Hi Expert- please spend your few minute only on this

Re: $$Excel-Macros$$ copy range

2012-03-06 Thread dguillett1
Try this. BTW you have NO Bob in field 7 Sub filterandcopyusedrange() Dim ds As Worksheet Set ds = Sheets(Sheet10) Cells.Find(*, Cells(Rows.Count, Columns.Count) _ , , , xlByRows, xlPrevious).Copy ds.Range(d1) With ActiveSheet.UsedRange .AutoFilter Field:=7, Criteria1:=bob

Re: $$Excel-Macros$$

2012-03-06 Thread dguillett1
When all else fails, RTFI 3) Don't post questions regarding breaking or bypassing any security measure. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Jai Sent: Tuesday, March 06, 2012 9:21 AM To: excel-macros Subject:

Re: $$Excel-Macros$$ Unlist - Table to be constant for every macro to run

2012-03-06 Thread dguillett1
try Sub removetableSAS() dim i as integer for i = 1 to 3 activesheet. osh.listobjects(Table i ).unlist next i End sub Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: yogananda muthaiah Sent: Tuesday, March 06, 2012 11:38 AM To: excel-macros@googlegroups.com

Re: $$Excel-Macros$$ vba code to kill all open workbooks

2012-03-07 Thread dguillett1
How about application.quit or Sub CLOSE_ALL() Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In Application.Workbooks w.Close SaveChanges:=false Next w 'Application.Quit End Sub Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com

Re: $$Excel-Macros$$ modification in paste special macro.

2012-03-07 Thread dguillett1
no Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: danial mansoor Sent: Tuesday, March 06, 2012 10:41 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ modification in paste special macro. i used this macro and assigned it a shortcut key for my

Re: $$Excel-Macros$$ Need if formula

2012-03-07 Thread dguillett1
You didn’t show us your situation but, depending on your need you could use LOOKUP, vLookup Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Ashish Bhalara Sent: Tuesday, March 06, 2012 10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Need

Re: $$Excel-Macros$$ loop through cell

2012-03-07 Thread dguillett1
Many reasons. What are you trying to do? For Each ws In ThisWorkbook.Worksheets If InStr(1, ws.Name, vbTextCompare) = 0 _ what ?? And InStr(1, ws.Name, Doc, vbTextCompare) = 0 Then 'you didn’t select the worksheet and you do NOT need to with ws .Columns(C).AutoFit

Re: $$Excel-Macros$$ Re: modification in paste special macro.

2012-03-07 Thread dguillett1
Paul, As you know I adhere closely to the KISS principle. I assumed ?? that OP wanted to “put the formula back” . Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Paul Schreiner Sent: Wednesday, March 07, 2012 8:31 AM To: excel-macros@googlegroups.com Subject:

Re: $$Excel-Macros$$ Re: modification in paste special macro.

2012-03-07 Thread dguillett1
- From: dguillett1 dguille...@gmail.com To: excel-macros@googlegroups.com Sent: Wed, March 7, 2012 9:48:44 AM Subject: Re: $$Excel-Macros$$ Re: modification in paste special macro. Paul, As you know I adhere closely to the KISS principle. I

Re: $$Excel-Macros$$ formula help

2012-03-07 Thread dguillett1
Macro solution for summary Sub getuniqueandcount() Range(A1:A Cells(Rows.Count, 1).End(xlUp).Row) _ .AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range(G1), Unique:=True Range(h2:H Cells(Rows.Count, g).End(xlUp).Row).Formula = _ =VLOOKUP(G2,A:B,2,0)--COUNTIF(A:A,G2) End Sub Don Guillett

Re: $$Excel-Macros$$ Vlookup basics and help

2012-03-07 Thread dguillett1
vlookup?? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Skanda Sent: Wednesday, March 07, 2012 10:53 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Vlookup basics and help I have two worksheets subset and Maindata. Subset has the following

Re: $$Excel-Macros$$ Vlookup basics and help

2012-03-07 Thread dguillett1
Modify to suit =IF(ISNA(VLOOKUP(A26,Maindata!$A$2:$I$39,3,0)),,VLOOKUP(A26,Maindata!$A$2:$I$39,3,0)) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Skanda Sent: Wednesday, March 07, 2012 11:31 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$

Re: $$Excel-Macros$$ Need if formula

2012-03-07 Thread dguillett1
if formula i just used this formula however how can i add iserror formula to this.. On Thu, Mar 8, 2012 at 12:29 AM, Rajasekhar Praharaju rajasekhar.prahar...@gmail.com wrote: thanks one and all for your help.. On Wed, Mar 7, 2012 at 7:14 PM, dguillett1 dguille...@gmail.com

Re: $$Excel-Macros$$ loop through cell

2012-03-07 Thread dguillett1
Send direct to dguillett1 @gmail.com Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: LearnExcel Sent: Wednesday, March 07, 2012 4:33 PM To: MS EXCEL AND VBA MACROS Subject: Re: $$Excel-Macros$$ loop through cell Don work Great thanks

Re: $$Excel-Macros$$ vba code to kill all open workbooks

2012-03-07 Thread dguillett1
running the code what needs to be changed? ie: Master file book1 book2 book3 ect close everything expect master file On Mar 7, 8:32 am, dguillett1 dguille...@gmail.com wrote: How about application.quit or Sub CLOSE_ALL() Application.ScreenUpdating = False Application.DisplayAlerts = False

Re: $$Excel-Macros$$ copy range

2012-03-07 Thread dguillett1
send to dguillett1 @gmail.com Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: LearnExcel Sent: Wednesday, March 07, 2012 4:37 PM To: MS EXCEL AND VBA MACROS Subject: Re: $$Excel-Macros$$ copy range hey Don sorry to trouble you

Re: $$Excel-Macros$$ : How to use IF Function more than 8 times ?

2012-03-07 Thread dguillett1
0 100 126 200 131 300 136 400 141 500 146 600 151 700 156 800 161 900 166 1000 171 1100 =VLOOKUP(A3,B8:C18,2) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Rushiraj Patel Sent:

Re: $$Excel-Macros$$ Vlookup basics and help

2012-03-08 Thread dguillett1
: Wednesday, March 07, 2012 8:55 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Vlookup basics and help Don, It did not return any values On Wed, Mar 7, 2012 at 4:56 PM, dguillett1 dguille...@gmail.com wrote: Modify to suit =IF(ISNA(VLOOKUP(A26,Maindata!$A$2:$I$39,3,0

Re: $$Excel-Macros$$ VBA Help

2012-03-08 Thread dguillett1
This simple one liner leaves sub closewholeexcelapplication() application.quit end sub Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: pavan chowdary Sent: Thursday, March 08, 2012 3:48 AM To: excel-macros Subject: $$Excel-Macros$$ VBA Help Hi, This is pavan.

Re: $$Excel-Macros$$ copy range

2012-03-09 Thread dguillett1
I sent a “solved macro for this” Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Selva Loganathan Sent: Thursday, March 08, 2012 8:31 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ copy range -- Forwarded message -- From: Selva

Re: $$Excel-Macros$$ Delete the Rows Between the Last Row in Column A and the Last Row of Column B

2012-03-09 Thread dguillett1
try Rows(lastrowB : lastrowC).Delete or Rows(lastrowB).resize(lastrowC-lastrowb).Delete Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Johnny Sent: Thursday, March 08, 2012 7:08 PM To: MS EXCEL AND VBA MACROS Subject:

Re: $$Excel-Macros$$ Delete the Rows Between the Last Row in Column A and the Last Row of Column B

2012-03-09 Thread dguillett1
. I tried moving around the and such, but couldn't figure it out. Thanks Johnny On Mar 9, 3:13 pm, dguillett1 dguille...@gmail.com wrote: try Rows(lastrowB : lastrowC).Delete or Rows(lastrowB).resize(lastrowC-lastrowb).Delete Don Guillett Microsoft MVP Excel SalesAid Software dguille

Re: $$Excel-Macros$$ Match text to a list

2012-03-10 Thread dguillett1
Look in the help index for FIND then incorporate into an if/end set mf=find if not mf is nothing then do this else do that end if Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Brian Sent: Saturday, March 10, 2012 3:06 AM To: excel-macros@googlegroups.com

Re: $$Excel-Macros$$ Re: Match text to a list

2012-03-10 Thread dguillett1
In cell D18 I have some text. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Kris Sent: Saturday, March 10, 2012 4:55 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Match text to a list Hi Sub kTest() Dim Flg As Boolean

Re: $$Excel-Macros$$ Re: Match text to a list

2012-03-10 Thread dguillett1
I didn’t read it COMPLETELY. Still like pure vba better. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Kris Sent: Saturday, March 10, 2012 8:31 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Match text to a list So what ? On Saturday,

Re: $$Excel-Macros$$ Avg. Revisit in number of days

2012-03-10 Thread dguillett1
] On Behalf Of dguillett1 Sent: 01 March 2012 19:15 To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Avg. Revisit in number of days I still do NOT understand your need? Don Guillett SalesAid Software dguille...@gmail.com From: Amit Desai (MERU) Sent: Sunday, February 26

Re: $$Excel-Macros$$ Re: Match text to a list

2012-03-10 Thread dguillett1
isnumber is based on the SEARCH returning same Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Brian Sent: Saturday, March 10, 2012 10:53 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Match text to a list Thank you Kris, your solution works

Re: $$Excel-Macros$$ Query

2012-03-11 Thread dguillett1
=IF(B2SUMPRODUCT(MAX($B$2:$B$31*(($A$2:$A$31=A2)*($C$2:$C$31=main,Greater than Main,) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Aamir Shahzad Sent: Saturday, March 10, 2012 11:31 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Query Dear

Re: $$Excel-Macros$$ Help...

2012-03-11 Thread dguillett1
My preference would be to use macros to input the resulting value using vba or application.sum or EVALUATE. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: ashjain2...@yahoo.co.in Sent: Sunday, March 11, 2012 6:27 AM To:

Re: $$Excel-Macros$$ Help: VBA code for RGB values

2012-03-11 Thread dguillett1
:43 AM, dguillett1 dguille...@gmail.com wrote: http://www.cpearson.com/excel/colors.aspx see att Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Janet Dickson Sent: Saturday, March 10, 2012 6:43 AM To: excel-macros@googlegroups.com Subject

Re: $$Excel-Macros$$ need VBA Code plz help

2012-03-11 Thread dguillett1
Have you tried using datafilterautofilter Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Gulam Hameed Sent: Sunday, March 11, 2012 1:13 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ need VBA Code plz help Dear Noorain experts I want

Re: $$Excel-Macros$$ Query

2012-03-11 Thread dguillett1
=IF(B2SUMPRODUCT(MAX($B$2:$B$31*(($A$2:$A$31=A2)*($C$2:$C$31=main,Greater than Main,) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Aamir Shahzad Sent: Sunday, March 11, 2012 1:27 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Query

Re: $$Excel-Macros$$ Help...

2012-03-11 Thread dguillett1
Sheet protection easy to defeat while vba protection is more difficult. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Seraj Alam Sent: Sunday, March 11, 2012 10:01 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Help... Hi, Please find

Re: $$Excel-Macros$$ Query

2012-03-11 Thread dguillett1
Asa, My formula tested fine without the proposed change. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Asa Rossoff Sent: Sunday, March 11, 2012 11:28 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Query Hi Aamir, You're welcome. The

Re: $$Excel-Macros$$ Need a small help

2012-03-11 Thread dguillett1
try custom format of h or [$-409]h;@ Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Indrajit $nai Sent: Sunday, March 11, 2012 3:52 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Need a small help Hi All, Need a small help, can anyone convert

Re: $$Excel-Macros$$ Add business address in a single row

2012-03-12 Thread dguillett1
A macro approach. Sub lineemupSAS() Dim i As Long Dim j As Integer Application.ScreenUpdating = False For i = 1 To Cells(Rows.Count, 2).End(xlUp).Row Step 4 For j = 1 To 4 Cells(i, j + 2).Value = Cells(j + 1, 2).Value Next j Next i ‘clean up

Re: $$Excel-Macros$$ help on copy and past data needed

2012-03-12 Thread dguillett1
You can help yourself learn. Record a macr while select your rangedatafilterfilter by datecopy/paste to other sheetunfilter. clean it up to use for next time. Post back your results Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: pawel lupinski Sent: Monday,

Re: $$Excel-Macros$$ Logical Formula Problem

2012-03-12 Thread dguillett1
See if this simpler approach is helpful Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: hilary lomotey Sent: Monday, March 12, 2012 10:22 AM To: excel-macros Subject: $$Excel-Macros$$ Logical Formula Problem Hi Experts i am trying to use the logical formula ie

Re: $$Excel-Macros$$ Macro for format table

2012-03-13 Thread dguillett1
Should do it Sub CopyColumnsToTableSAS() Dim i As Integer Dim fr As Long Dim lr As Long 'col A Cells(2, 1).Resize(Cells(2, 1).End(xlDown).Row).Copy Cells(2, g) 'other columns For i = 2 To 5 fr = Cells(2, i).End(xlDown).Row lr = Cells(Rows.Count, i).End(xlUp).Row Cells(fr, i).Resize(lr).Copy

Re: $$Excel-Macros$$ Format data from Tally 7.2

2012-03-13 Thread dguillett1
I thought I already responded to this. Sub CopyColumnsToTableSAS() Dim i As Integer Dim fr As Long Dim lr As Long 'col A Cells(2, 1).Resize(Cells(2, 1).End(xlDown).Row).Copy Cells(2, g) 'other columns For i = 2 To 5 fr = Cells(2, i).End(xlDown).Row lr = Cells(Rows.Count, i).End(xlUp).Row

Re: $$Excel-Macros$$ Saving Excel Macro file to Xls format

2012-03-13 Thread dguillett1
Just save it as .xls and hope that your macros are BACKWARD compatible. Some are NOT. Test! Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Avinash Daga Sent: Tuesday, March 13, 2012 10:55 AM To: excel-macros@googlegroups.com Subject:

Re: $$Excel-Macros$$ Macro for format table

2012-03-15 Thread dguillett1
I don't understand your need and WHY Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Rajesh K R Sent: Thursday, March 15, 2012 12:16 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Macro for format table Hi Thank u

Re: $$Excel-Macros$$ Sum hours weeks

2012-03-15 Thread dguillett1
See att., Option Explicit Private Sub CommandButton1_Click() Dim tr As Integer Dim b As Range tr = 2 For Each b In Columns(1).SpecialCells(xlCellTypeBlanks) With Cells(b.Row - 1, e) .Value = Application.Sum(Range(Cells(tr, 2), Cells(b.Row - 1, 2))) .NumberFormat = [h]:mm End With tr = b.Row + 1

Re: $$Excel-Macros$$ Sum hours weeks

2012-03-15 Thread dguillett1
You may want to use this to total at the bottom of column E Option Explicit Private Sub CommandButton1_Click() Dim tr As Integer Dim b As Range Dim lr As Long tr = 2 For Each b In Columns(1).SpecialCells(xlCellTypeBlanks) With Cells(b.Row - 1, e) .Value = Application.Sum(Range(Cells(tr, 2),

Re: $$Excel-Macros$$ Need Vba code to count no.of values in a column

2012-03-15 Thread dguillett1
Actually, the other suggestion is better Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: venkat1@gmail.com Sent: Thursday, March 15, 2012 9:26 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Need Vba code to

Re: $$Excel-Macros$$ Assistance with vlookup

2012-03-15 Thread dguillett1
Start by looking in the help index for VLOOKUP, make a table and apply the formula. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: krabbus Sent: Thursday, March 15, 2012 7:03 AM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$

Re: $$Excel-Macros$$ Sum hours weeks

2012-03-15 Thread dguillett1
Glad to help Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: ChilExcel Sent: Thursday, March 15, 2012 5:28 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Sum hours weeks Excellent !!! dguillett1 is what I need Thank you very much for your

Re: $$Excel-Macros$$ FVOA -withdrawal problem

2012-03-16 Thread dguillett1
Are you saying that if b7=annual b8=quarterly b5=5000 you want d13:d15 to be ___5000? or ?? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: hilary lomotey Sent: Friday, March 16, 2012 9:51 AM To: excel-macros Subject: $$Excel-Macros$$ FVOA -withdrawal

Re: $$Excel-Macros$$ FVOA -withdrawal problem

2012-03-16 Thread dguillett1
if you are saying you put a value in d13 then maybe b14 formula copied down is?? =IF(A14=,,FV($E$2,A14,,-$B$2+SUM($D$13:D13),1)) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: hilary lomotey Sent: Friday, March 16, 2012 9:51 AM To: excel-macros

Re: $$Excel-Macros$$ An EASY One: I Need a formula that checks if a value is part of a list.

2012-03-17 Thread dguillett1
What we have here is “a failure to look in the help index” excel 101 =LOOKUP(E6,G5:G12) =MATCH(E6,G5:G12) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Scruffy Huffy Sent: Saturday, March 17, 2012 6:59 AM To: excel-macros@googlegroups.com Subject:

Re: $$Excel-Macros$$ Need help with VBAfor Excel naming and using column names for looping

2012-03-18 Thread dguillett1
the simplest is sub nameit cells(7,4).name=whateveryouwanttonameit end sub =whaeveryounamedit Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: tangledweb Sent: Sunday, March 18, 2012 5:22 AM To: MS EXCEL AND VBA MACROS Subject:

Re: $$Excel-Macros$$ Rank Formula required

2012-03-18 Thread dguillett1
See attached =SUM(1*(F2$F$2:$F$9))+1+IF(ROW(F2)-ROW($F$2)=0,0,SUM(1*(F2=OFFSET($F$2,0,0,INDEX(ROW(F2)-ROW($F$2)+1,1)-1,1 Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Secret Shot Sent: Sunday, March 18, 2012 4:02 PM To:

Re: $$Excel-Macros$$ Rank Formula required

2012-03-18 Thread dguillett1
Shorter. Also enter using CSE (ctrl+shift+enter) =COUNTIF($F$2:$F$9,F2)+SUM(IF(F2=$F$2:F2,1,0)) Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com -Original Message- From: Secret Shot Sent: Sunday, March 18, 2012 4:02 PM To: excel-macros@googlegroups.com

Re: $$Excel-Macros$$ Re: Error while running macro

2012-03-19 Thread dguillett1
If xl2003, toolsoptionssecurity remove Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Chidurala, Shrinivas Sent: Monday, March 19, 2012 9:21 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Re: Error while running macro Divaker, I am facing

Re: $$Excel-Macros$$ Consolidate Two Weekly Reports into a Summary Report

2012-03-19 Thread dguillett1
One possible formula to use vlookup if there is a match. See att =IF(ISNA((MATCH($J4,'Week One'!$A:$A,0))),0,VLOOKUP($J4,'Week One'!$A$2:$C$118,2,0))+IF(ISNA((MATCH($J4,'Week Two'!$A:$A,0))),0,VLOOKUP($J4,'Week Two'!$A$2:$C$118,2,0)) Don Guillett Microsoft MVP Excel SalesAid Software

Re: $$Excel-Macros$$ cells shifting to Up!

2012-03-20 Thread dguillett1
A small primer in the use of specialcells Sub DeleteBlanksUsingSpecialCellsSAS() Cells.SpecialCells(xlBlanks).Delete End Sub Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Mohammed Muneer Sent: Tuesday, March 20, 2012 2:13 AM To: excel-macros@googlegroups.com

Re: $$Excel-Macros$$ checkbox query

2012-03-20 Thread dguillett1
You may prefer using radio button instead. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Shankar Bheema Sent: Tuesday, March 20, 2012 1:02 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ checkbox query Dear experts I have attached an excel file

Re: $$Excel-Macros$$ connecting to an excel data file without opening the particular excel file

2012-03-20 Thread dguillett1
From looking at your files it appears that you haven’t given us much info to go on. what data do you want from the data file and where do you want it? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Shankar Bheema Sent: Monday, March 19, 2012 11:51 PM To:

Re: $$Excel-Macros$$ Need a small help, related to the Date and Time macro.....

2012-03-20 Thread dguillett1
Using the sub below,anytime you make an entry in col A you get now in col B. It’s automatic. Goes in the sheet module. See attached. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count 1 _ Or Target.Row 2 _ Or Target.Column 1 Then Exit Sub If Len(Application.Trim(Target)) 0

Re: $$Excel-Macros$$ Re:Help to find position of a particular number in a given data set

2012-03-21 Thread dguillett1
Sounds like homework Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Atul Patel Sent: Tuesday, March 20, 2012 4:24 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re:Help to find position of a particular number in a given data set Hi, I need

Re: $$Excel-Macros$$ Need a small help, related to the Date and Time macro.....

2012-03-21 Thread dguillett1
and Time macro. Thanks @ Ranjan, but I don't track it in MS-Access File, can you incorporate this codes for MS-Excel? Thanks @ dguillett1, but I'm not able to use the same code for Logout time tracking in a different column, can you please help me once again? @ Abdulgani Shaikh, I have

Re: $$Excel-Macros$$ Split text in cell

2012-03-21 Thread dguillett1
Option Explicit Sub getmiddleSAS() Dim c As Range Dim fs As Long Dim ls As Long For Each c In Range(a2:a10) c = Application.Trim(c) fs = InStr(c, ) ls = InStrRev(c, ) c.Offset(, 1) = Mid(c, fs, ls - fs) Next c Columns(b).AutoFit End Sub Don Guillett Microsoft MVP Excel SalesAid Software

  1   2   3   4   5   6   7   8   9   10   >