Re: $$Excel-Macros$$ Set Value in Date format in first Empty Column : Google Script

2014-10-29 Thread Paul Schreiner
quot; the value. I usually do something like replacing a space with a space. excel would then recognize the string as a date and store it as a date. But I have no idea if GoogleDocs does that. Paul - “Do all the good you can, By all the means you can, In

Re: $$Excel-Macros$$ Set Value in Date format in first Empty Column : Google Script

2014-10-29 Thread Paul Schreiner
= tDate & " " & sTime End Function using the above fundtion, you could either enter it into the spreadsheet: =ReplaceStringDate(A2) or create a loop and call the function: Sub ConvertAll() Dim R For R = 2 To 15 Cells(R, "B").Value = ReplaceStri

Re: $$Excel-Macros$$ Load data's Update using vba

2014-10-29 Thread Paul Schreiner
should have "Failed" in some column? or only in row 25,26? or some other test or result? and: "check if the vendor names are the same or not" The same as what? check to see if you have duplicate names? or?? Paul - “Do all the good you can,

Re: $$Excel-Macros$$ How to pull ID#s that meet "yes" to different criteria columns into seperate sheet

2014-10-28 Thread Paul Schreiner
Do you want a macro that counts the "yes" values and copies the row? or woujld it be enough to copy the client ID's to the second page, then use a =Countif() function to count the "Yes" values and put the result in the second page. Then, simply fiter on rows

Re: $$Excel-Macros$$ Re: How can one control data entry and truly protect a verified entry

2014-10-27 Thread Paul Schreiner
ByVal WkSh As Object, ByVal AmAt As Excel.Range) So, I assumed you were using VBA (since this is the Excel VBA SheetSelectionChange event) But the <\CODE> syntax isn't VBA, so nothing I said would apply. sorry. Paul - “Do all the good you

Re: $$Excel-Macros$$ Issue while using vba for pivot table data's

2014-10-27 Thread Paul Schreiner
quot;P1" and "Q1" to "N1" and "O1" also probably change SourceData:=wsScratch.Name & "!R1C1:R" & nextrow - 1 & "C" & 15 + NUM_SHEETS, to SourceData:=wsScratch.Name & "!R1C1:R" & nextrow - 1 & "C" & 1

Re: $$Excel-Macros$$ Need Help - How to Move multiple worksheets by Tab COlor

2014-10-27 Thread Paul Schreiner
Dict_Sheets(tColor)).Sheets.Count) Else Sht.Copy After:=Workbooks(Dict_Sheets(tColor)).Sheets(Workbooks(Dict_Sheets(tColor)).Sheets.Count) End If Next Sht Application.ScreenUpdating = True End Sub Paul - “Do all the good y

Re: $$Excel-Macros$$ Issue while using vba for pivot table data's

2014-10-27 Thread Paul Schreiner
then shifted the Zip/phone/shipVia/Company columns. it's allso missing the "HS" column. adding the necessary column headings should fix your problem. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In

Re: $$Excel-Macros$$ New Member

2014-10-23 Thread Paul Schreiner
are simply a matter of learning the syntax and how the compiler works. let us know if you have a question and we'll do our best to answer. Also, keep in mind that the members of this forum are from all over the planet! So, sometimes your question might be

Re: $$Excel-Macros$$ Re: How can one control data entry and truly protect a verified entry

2014-10-22 Thread Paul Schreiner
t is, if you select cell A9, Target.Address is $A$9 So, if you want to test to see if the selected cell is A9, you could use either: If (Targ.Address = "$A$9") then or even: If (Targ.Row = 9) and (Targ.Column = 1) then Paul - “Do all the good

Re: $$Excel-Macros$$ How to assign userselected path to variable

2014-10-22 Thread Paul Schreiner
rn a success/fail result. I suspect that the VBA programmers went with the latter. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the peopl

Re: $$Excel-Macros$$ How to assign userselected path to variable

2014-10-21 Thread Paul Schreiner
g? which you can do with Application.FileDialog(msoFileDialogFilePicker) Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ev

Re: $$Excel-Macros$$ How to assign userselected path to variable

2014-10-21 Thread Paul Schreiner
Sub Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley - From

Re: $$Excel-Macros$$ Re: Item search in Userform

2014-10-16 Thread Paul Schreiner
es of vba code in 12-14 applications (workbooks). But if you were to look at my early work, I know they would look juvenile. We're always growing. Even the ones that don't think they have anything else to learn! take a look and let me know how I can help. Paul ---

Re: $$Excel-Macros$$ Re: Item search in Userform

2014-10-16 Thread Paul Schreiner
hen the End Date combobox is changed) Your macros are about 215 executable lines of code(excluding blank lines) My approach takes about 110 lines of code, and is much easier to follow (in my opinion). I didn't incororate my original solution to your latest file, but I can if you wish.

Re: $$Excel-Macros$$ Help in Time Tracker

2014-10-15 Thread Paul Schreiner
hoose. If you don't like it, or you don't want to dive into the world of macros, then nevermind. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you c

Re: $$Excel-Macros$$ VBA Required - For links in worksheet

2014-10-15 Thread Paul Schreiner
If (Not FlagDup) Then C = C + 1 Sheets("Summary").Cells(R, C).Value = tString End If End If Next rng End If Next sht End Sub Paul - “Do all the

Re: $$Excel-Macros$$ Serial Number macro problem

2014-10-14 Thread Paul Schreiner
ERPRET it? without more information as to what you want to accomplish, it would be almost impossible to guess enough to provide any meaningful assistance. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places

Re: $$Excel-Macros$$ Application.UseSystemSeparators

2014-10-14 Thread Paul Schreiner
Cur_SysSep Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - J

Re: $$Excel-Macros$$ Help in Time Tracker

2014-10-14 Thread Paul Schreiner
his number represent? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley

Re: $$Excel-Macros$$ Help in Time Tracker

2014-10-13 Thread Paul Schreiner
re are 24 hours in a day, you need to multiply this value by 24 to get: 11.417 hours (which is .417 HOURS, not 41.667 minutes!) let me know if you need help applying this logic to your workbook. Paul - “Do all the good you can, By all the means you

Re: $$Excel-Macros$$ Sort VBA required

2014-10-13 Thread Paul Schreiner
I thought I'd sent this, but it looks like I did not. If you create an AutoFilter, then your buttons can simply apply the filter (as attached) Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you ca

Re: $$Excel-Macros$$ excel add-in to .exe

2014-10-13 Thread Paul Schreiner
an .exe format, since they normally would require the application in order to run! So, if you can explain what you have in your VBA and what you're trying to do with it, perhaps we can help accomplish your task, just not the exact way you've described. Paul

Re: $$Excel-Macros$$ Re: Need Macro enabled Button to select Filter Values

2014-10-13 Thread Paul Schreiner
Why were you not able to change the captions? Do you need help with that? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever

$$Excel-Macros$$ Re: Need Macro enabled Button to select Filter Values

2014-10-10 Thread Paul Schreiner
What do you know of Excel and VBA? This is a pretty simple exercise. Simply insert an ActiveX button. change the Properties so that the name is: Btn_Filter. Select "View Code" add this to the macro: Private Sub Btn_Filter_Click() If (Left(UCase(Btn_Filter.Caption), 4) <> "TYPE") Then

Re: $$Excel-Macros$$ Calculating Number of Context Changes in a Series

2014-10-09 Thread Paul Schreiner
xt, in Cell J3 I inserted: =COUNTIF(K3:Q3,"start")-1 and copied it down. This counts the number of tims a task was STARTED, then subtracts 1 to count the number of starts except for the first. Paul

Re: $$Excel-Macros$$ Sort VBA required

2014-10-07 Thread Paul Schreiner
assigned the macros to the buttons. It SEEMS to do what you're asking. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you

Re: $$Excel-Macros$$ VLOOKUP AND HLOOKUP and MACROS

2014-10-07 Thread Paul Schreiner
front of you, you come across answers to questions you haven't even asked (yet)! let us know if you have trouble, or need an explanation as to how (or why) something works. Paul - “Do all the good you can, By all the means you can, In all the ways y

Re: $$Excel-Macros$$ Sort VBA required

2014-10-06 Thread Paul Schreiner
played when you hit the "BSE 30" button? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the peopl

Re: $$Excel-Macros$$ VLOOKUP AND HLOOKUP and MACROS

2014-10-06 Thread Paul Schreiner
ies whether you want VLOOKUP to find an exact match or an approximate match: * If range_lookup is either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned. Paul -

Re: $$Excel-Macros$$ Countdown Date to target date

2014-10-02 Thread Paul Schreiner
"OK","") requirement #2: to test if the date is overdue, use: IF(E3-TODAY()<=0,"OVERDUE","") Combine the two to test if the status is complete, or cancelled, then test to see if the date is past due use: =IF(OR(H3=&

Re: $$Excel-Macros$$ Need help to mail userform on outlook body

2014-10-01 Thread Paul Schreiner
isplays the userform. the button would then have to update some other data source, like a file in a network folder. then, provide a link in the email for THAT workbook. Depending on your network environment, you may have a messenger client that you could use to send a notificatio

Re: $$Excel-Macros$$ Report

2014-09-29 Thread Paul Schreiner
to do the whole thing in VBA (without using VLookups) but, since it only takes a minute and 15 seconds, 7% wasn't enough to worry about. I wasn't sure how you wanted to run the macro (called Create_GradeSheets) Paul - “Do all the good you

Re: $$Excel-Macros$$ Report

2014-09-29 Thread Paul Schreiner
Absolutely this is possible. it looks like a fun exercise. do you have any experience with VBA? I'll take a look this morning and try to get back with you. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In al

Re: $$Excel-Macros$$ Applying Date Filters using VBA

2014-09-26 Thread Paul Schreiner
e("$A$1:$A$65000").AutoFilter _ Field:=1, _ Operator:=xlFilterValues, _ Criteria2:=Array(2, Yesterday) actually manages to (I think) cast the Array() as a Variant data type. So.. in THIS case, it didn't really matter what data type I used. If I used: Dim Yesterday

Re: $$Excel-Macros$$ Applying Date Filters using VBA

2014-09-26 Thread Paul Schreiner
Yesterday) but, since I don't know what you're trying, I don't know if this is even CLOSE to being what you're looking for! Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can,

Re: $$Excel-Macros$$ Applying Date Filters using VBA

2014-09-26 Thread Paul Schreiner
l get that uses these terms is to use Excel AutoFilters and then look through the sheet and test to see if the cell is visible. which is probably not what you're looking for. Paul - “Do all the good you can, By all the means you can, In all the ways you

Re: $$Excel-Macros$$ Urgent SQL code required

2014-09-25 Thread Paul Schreiner
ENAME_HERE group by Cust_ID BTW: You asked a SQL question in a forum of Excel/VBA users. Does that mean that you're looking for a VBA solution? If that's the case, there's WAY too much information missing. Paul - “Do all the good you can,

Re: $$Excel-Macros$$ VBA Numbers only in Textbox

2014-09-25 Thread Paul Schreiner
simpler and easier to maintain. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley

$$Excel-Macros$$ Example of Userform with Tabstrip or Multipage

2014-09-23 Thread Paul Schreiner
er of tabstrips change to accomodate the new userform size. Has anyone had any experience with tabstrips or multipage strips? I found one semi-usable example with a Google search, but it still feels like I'm starting from scratch. any suggestions? Paul -- Are you =EXP(E:RT) or =NOT(EXP(E

Re: $$Excel-Macros$$ Loop in cell in different sheet in a workbook

2014-09-23 Thread Paul Schreiner
can you give me an example? I tried a couple of things to see if it could get VBA to act up. No luck... seems to work fine in Excel 2010. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At

Re: $$Excel-Macros$$ How to fix a vba code that returns a cell reference

2014-09-22 Thread Paul Schreiner
extRw & " < """", D" & NextRw & ","""")" so your VBA code looks like: ActiveSheet.Cells(i, 2).Value = "=IF(D" & NextRw & " < """", D" & NextRw & ", ""&q

Re: $$Excel-Macros$$ Loop in cell in different sheet in a workbook

2014-09-18 Thread Paul Schreiner
alue of Cells(32 + j, 3 + i) in the Data sheet, you would either use: Worksheets("Data").Cells(32 + j, 3 + i).Value or Sheet1.Cells(32 + j, 3 + i).Value Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the pl

Re: $$Excel-Macros$$ Matching data

2014-09-12 Thread Paul Schreiner
In your case, what constitutes "similar"? If reading left-to-right, if the two concatenated strings match the first X characters, then is it "similar"? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In

Re: $$Excel-Macros$$ Convert IF formula to VBA

2014-09-11 Thread Paul Schreiner
what you were trying to accomplish. Otherwise, the missing information relies on assumptions made by the mind of others. Which, in some cases can be an adventure in itself! let us know if you need additional assistance. Paul - “Do all the good you can, By all t

Re: $$Excel-Macros$$ save active sheet in new workbook

2014-09-11 Thread Paul Schreiner
to match the fileformat of your file. the easiest way to figure this out is to record a macro in which you copy a sheet to a new workbook, save it as a new filename and type and close the workbook. Paul - “Do all the good you can, By all the means you can,

Re: $$Excel-Macros$$ Convert IF formula to VBA

2014-09-10 Thread Paul Schreiner
Are you saying that: 1) you'd like to use VBA to insert the =IF() statement? 2) or that you'd like VBA to perform the test and enter the result? 3) or that you'd like a VBA function to perform the test and return the result? Paul - “Do all t

Re: $$Excel-Macros$$ Macroa

2014-09-05 Thread Paul Schreiner
se(EXT), 3) = "XLS") Then ... end if next f end if of course, if you already know the filename, you can use: if (fso.fileexists(filename)) then Paul - “Do all the good you can, By all the means you can, In all the ways you

Re: $$Excel-Macros$$ Can UDF entered as a formula in names return a value to VBA?

2014-09-05 Thread Paul Schreiner
? For a given cell (D4): If the cell is an excel formula (like =vlookup() or a calculation), Range("D4").Formula will return the formula but Range("D4").Value should return the resulting value. I'm not sure how you're going to get past using an event function though. I

Re: $$Excel-Macros$$ Re: Need some help with VBA and Userform Please

2014-09-05 Thread Paul Schreiner
Are you saying you need to set NextRw to 6 if it's the first set? if so, after NextRw = .Cells(Rows.Count, 2) _ .End(xlUp).Offset(1, 0).Row add: If (NextRw < 6) then NextRw = 6 Paul - “Do all the good you can, By all the means you can

Re: $$Excel-Macros$$ Macroa

2014-09-05 Thread Paul Schreiner
h is to the file and use the VBA filesytem object to copy the file. If it actually is on an intranet web page, then it can still be accomplished, but it's a little more involved. Paul - “Do all the good you can, By all the means you can, In all the

Re: $$Excel-Macros$$ Need some help with VBA and Userform Please

2014-09-05 Thread Paul Schreiner
;X") Then .Cells(NextRw + 0, "D").Value = "-" Else .Cells(NextRw + 0, "D").Value = Me.txtPointsReceived.Value End If Paul - “Do all the good you can, By all the means you can, In al

Re: $$Excel-Macros$$ Text file to excel

2014-09-05 Thread Paul Schreiner
quot;, ForAppending, True) f.Write "Hello world!" f.Close You would open the text file, then loop through your worksheet and write each line. Usually, I build a string variable from the worksheet row and write the string. Paul - “Do all the good yo

Re: $$Excel-Macros$$ Text file to excel

2014-09-04 Thread Paul Schreiner
Sub Sub Save_Macro() ActiveWorkbook.Save End Sub Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you

Re: $$Excel-Macros$$ Text file to excel

2014-09-04 Thread Paul Schreiner
to .txt so, what am I missing in this question? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you c

Re: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Paul Schreiner
example, which name gets tested FIRST is important: If you were to reverse the first two names, then the selection wouldn't work as intended. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all th

Re: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Paul Schreiner
ForecastLastUpdated_*.xls* Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley

Re: $$Excel-Macros$$ Calculating working hours between 2 days with break time

2014-08-28 Thread Paul Schreiner
tion. so, the first step would be to convert your times to Excel time and proceed from there. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, T

Re: $$Excel-Macros$$ Help in function to show only valid data

2014-08-28 Thread Paul Schreiner
n changing DATA"?   So... making LOTS of assumptions regarding unanswered questions, are you saying you'd like a Change_Event macro in which whenever any data in columns I-J on the sheet is changed, the macro will copy the records in columns I-J that have a non-0 value in column J to colu

Re: $$Excel-Macros$$ Help in function to show only valid data

2014-08-28 Thread Paul Schreiner
ow. Like: Do you know how to write/modify/maintain macros? Where is the source data? (workbook/sheet) Where do you want the output displayed? How do you want to execute the macro (button? Change Event?)   so... does any of this help? Paul - “Do all the good

Re: $$Excel-Macros$$ Re: Introduce Yourself !!

2014-08-27 Thread Paul Schreiner
Welcome!   I am Paul Schreiner, working at Allison Transmission in Indianapolis, Indiana. I maintain over 120,000 lines of VBA code in multiple manufacturing applications.   If/when you have a question, bring it on!  Paul - “Do all the good you can, By all

Re: $$Excel-Macros$$ VBA Interview Question

2014-08-27 Thread Paul Schreiner
m!   If you simply type "data types" in the vba help box, you'll find that there are 13 types:   Boolean Byte Currency Date Double Integer Long LongLong LongPtr Object Single String Variant (default)  As for interview questions:  simply Google: vba interview que

Re: $$Excel-Macros$$ Re: Create macro to save macro template as macro enabled workbook using cell value as file name

2014-08-26 Thread Paul Schreiner
. instead of using SaveCopyAs to change the file type. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley

Re: $$Excel-Macros$$ VLookup file reference using VBA

2014-08-25 Thread Paul Schreiner
le itself.   It's pretty convoluted, and deals primarily with "memory management".   for your purposes, it just means you need a space.   " & wrkbk & "   Paul - “Do all the good you can, By all the means you can, In all the ways you

Re: $$Excel-Macros$$ Create macro to save macro template as macro enabled workbook using cell value as file name

2014-08-25 Thread Paul Schreiner
e current file, use SaveAs to save as a different filetype. Open the original file close the "New" file. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all

Re: $$Excel-Macros$$ Recover excel file opening passowrd

2014-08-25 Thread Paul Schreiner
iving from designing solutions using Excel and often protect their "intellectual property" using passwords.   A group (such as this) has no way of knowing if you are the ACTUAL owner of the Excel workbook, or merely trying to unlock someone else's work.   sorry, Paul

Re: $$Excel-Macros$$ VLookup file reference using VBA

2014-08-25 Thread Paul Schreiner
(RC[-3],'[" & wrkbk & "]Sheet1'!C1:C8,8,0)" ActiveCell.FormulaR1C1 = sVar Using sVar is helpful in debugging, simply because you can display the value of sVar to see if the string is being built properly. But it is not required. ActiveCell.FormulaR1C1 =  _ "=VLOOK

Re: Fwd: $$Excel-Macros$$ Doubt MBA

2014-08-22 Thread Paul Schreiner
what email program are you using? (Outlook?) Is "File_Name" and "File_Name2" the full names? or is there also a file extension?   (so, in your sheet, you have "File_Name" but the actual filename is: "File_Name.docx"?)  Paul --

Re: $$Excel-Macros$$ Filter Issue

2014-08-14 Thread Paul Schreiner
and execute accordingly.   If K1 has a pull-down for selection, I believe you can use a Calculation event to trigger the filter. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can,

Re: $$Excel-Macros$$ Selection on a multi select list box copy and paste that field from any folder.

2014-08-14 Thread Paul Schreiner
simply use the listbox to select the columns to display and hide those not selected? Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long

Re: $$Excel-Macros$$ Concat & lookup error

2014-08-13 Thread Paul Schreiner
I forgot to add: saving both files in the same format (.xls, .xlsx, .xlsb) would accomplish the same result.  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all

Re: $$Excel-Macros$$ Values from INDIRECT not staying after file closes

2014-08-13 Thread Paul Schreiner
blem with yours.   So, Could you send me a sample set of files? you don't have to send all 100. alpha, beta and gamma (or George, Paul and Ringo) would suffice.   I realize the data may be sensitive, so you may have to "change the names to protect the innocent".   But unless I can s

Re: $$Excel-Macros$$ Concat & lookup error

2014-08-13 Thread Paul Schreiner
000 rows.   In your vlookup, specify the rows (some number beyond the maximum) like:   =vlookup(j2,[MData.xlsx]Sheet1!$A$1:$B$65000,2,False) Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all

Re: $$Excel-Macros$$ Help for date formula

2014-08-12 Thread Paul Schreiner
I'd use something like: With the date to consider in A1, use:   =(YEAR(TODAY())-YEAR(A1))*12+MONTH(TODAY())-MONTH(A1)   Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times yo

Re: $$Excel-Macros$$ Filter on name in all sheet than paste in Master sheet

2014-08-12 Thread Paul Schreiner
t;Delhi") The macro would then copy all of the "Delhi" records to Sheet1 or Sheet2? If that is your goal, I might suggest instead of copying the worksheet to the current workbook, simply copy the data to the Master sheet instead. If you could send me (directly?) a

Re: $$Excel-Macros$$ Is it mandatory to keep the excel file as macro enable (if inside having macro) ?

2014-08-09 Thread Paul Schreiner
e the difference. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John W

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

2014-08-08 Thread Paul Schreiner
of days between the two dates. the difference between Friday, August 07, 2014 7:15 AM Friday, August 07, 2014 3:57 PM is 0.362500 days, or 8:42 (which means I logged in at 7:15am and logged out at 3:57pm, so I was at work for 8 hours and 42 minutes) hope this helps. Paul --

Re: $$Excel-Macros$$ make 10 digit data

2014-08-06 Thread Paul Schreiner
you, you'll have to provide much more information.   How many rows of data? How many columns? What do you want to do with the resulting text string? What do you want to do with the original data? How do you expect to maintain it? Paul - “Do all the good

Re: Fwd: $$Excel-Macros$$ Need VBA code to convert multi-pages PDF file into multiple sheets Excel Spreadsheet

2014-08-04 Thread Paul Schreiner
I'm not sure how this relates to pdf files. Or has the original discussion thread been "highjacked"?  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To

Re: $$Excel-Macros$$ URGENT : Help on excel for matching data

2014-07-25 Thread Paul Schreiner
What do you mean by "nearest". Closest without going over? or nearest absolute?  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can,

Re: $$Excel-Macros$$ Need help in creating macro

2014-07-25 Thread Paul Schreiner
ime for the corresponding "OUT" ring. I can write a macro that reads from the earliest time to the latest, and look for matching "Reader" and show the time difference between in/out. Then, if there is no "out", then indicate the missing r

Re: $$Excel-Macros$$ URGENT : Help on excel for matching data

2014-07-25 Thread Paul Schreiner
(F3,2)   in your data match sheet, simply use a VLookup:   =VLOOKUP(B2&C2&A2&E2,Source!A:C,3,FALSE)   and copy down.  However, in your samples, none of these criteria match data in the Source sheet. ?? Paul - “Do all the good you can, By all the

Re: $$Excel-Macros$$ Getting syntax error for a basic vba code

2014-07-24 Thread Paul Schreiner
These quote are not allowed in VBA. simply change them to (") and you should be fine. Sub GuessName()     Msg = "Is your name " & Application.UserName & "?"     Ans = MsgBox(Msg, vbYesNo)     If Ans = vbNo Then MsgBox "Oh, never

Re: $$Excel-Macros$$ Plz automation help

2014-07-23 Thread Paul Schreiner
w number in a Dictionary Object. Then, I read in the "daily" file. For each row, using the Record index, I locate the row number from the Dictionary Object and update the Master file. >From what you've given us, there's way too much missi

Re: $$Excel-Macros$$ Protect shared workbook

2014-07-23 Thread Paul Schreiner
nd protect the sheet. You can then use a Workbook_Open event to look at the user's login id and unlock the sheet for those that should have access to the column.  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the pla

Re: $$Excel-Macros$$ Merge Word Documents through EXCEL VBA

2014-07-21 Thread Paul Schreiner
Are you saying you want to copy the CONTENT of the Word Documents to an Excel  workbook? or append each of the Word Documents to a new Word document?  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you

Re: $$Excel-Macros$$ Indirect Function Not Working on Dates Please Help

2014-07-21 Thread Paul Schreiner
Oops, yes you included the range in the indirect() string.   so, the solution was simply using the text() function to convert the date number to a string  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places

Re: $$Excel-Macros$$ Indirect Function Not Working on Dates Please Help

2014-07-21 Thread Paul Schreiner
o a string that resembles your sheet names, I used: TEXT($A5,"dd-mm-")   Then used (nearly) what you did originally with the indirect() function. but, I believe you did not include the Range (C18:C40) within the indirect string definition. Which you need to do.  

Re: $$Excel-Macros$$ Indirect Function Not Working on Dates Please Help

2014-07-21 Thread Paul Schreiner
 For your sumif(Indirect function in cell B5, try:   =SUMIF(INDIRECT("'"&TEXT($A5,"dd-mm-")&"'!C18:C40"),B$3,INDIRECT("'"&TEXT($A5,"dd-mm-")&"'!F18:F40"))  (It should copy to D, F, H, J also) P

Re: $$Excel-Macros$$ run-time error '1004': Reference is not valid.

2014-07-21 Thread Paul Schreiner
" But, I tested to see if this error occurred if the range name no longer existed. Instead, I got: "Run-time error '1004': Application-defined or object-defined error" Slightly different, so my guess is that either the range "CalPERSImpliedInterestRate" or "Bench

Re: $$Excel-Macros$$ US$ currency Format

2014-07-18 Thread Paul Schreiner
hat represents one currency and you want it CONVERTED to another currency, you have to have the exchange rate and do the math. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you

Re: $$Excel-Macros$$ VBA to populate cells based on cirteria

2014-07-16 Thread Paul Schreiner
You're welcome!   I just figured that if I simply supplies the formula, there would be some that would like to see how it came together, so I'd just take care of that right away!  Paul - “Do all the good you can, By all the means you can, In al

Re: $$Excel-Macros$$ VBA to populate cells based on cirteria

2014-07-16 Thread Paul Schreiner
N()-4)-$C3,$D3)=0 within an OR() statement: OR((COLUMN()-4)=$C3,  MOD((COLUMN()-4)-$C3,$D3)=0) and used THAT as the conditional statement of the IF() function. give it a try and see if it works for you. Paul - “Do all the good you can, By all the means y

Re: $$Excel-Macros$$ Add Control On button click on Page

2014-07-15 Thread Paul Schreiner
userform to add many more rows. Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.

Re: $$Excel-Macros$$ Add Control On button click on Page

2014-07-14 Thread Paul Schreiner
g to create new text boxes: how many? Could you instead have them already created, and simply set the .Visibility =  false until you hit the button?  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, A

Re: $$Excel-Macros$$

2014-07-09 Thread Paul Schreiner
ntil" are not EXAMPLES of looping statements, but examples of TYPES of looping statements. an EXAMPLE would be something like: For i = 1 to 10 debug.print cells(i,"A").Value Next i   i = 0 Do while i < 10   i = i + 1  debug.print i loop Paul -

Re: $$Excel-Macros$$ Formula Required

2014-07-08 Thread Paul Schreiner
I'm sorry, but your explanation is confusing. Can you give an example?   Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as eve

Re: $$Excel-Macros$$ Help required on Macro

2014-06-30 Thread Paul Schreiner
set.   Look at:   File->Options->Trust Center Hit "Trust Center Settings" button on right  Then select Macro settings. The last item: "trust access to the VBA project object model" should be set. hopefully that takes care of the problem. Paul -

Re: $$Excel-Macros$$ How to remove vb code after you make a copy

2014-06-27 Thread Paul Schreiner
   End If     Next x     End With  Paul - “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - J

$$Excel-Macros$$ Re: Extract duplicate data and run calculation- macro request

2014-06-26 Thread Paul Schreiner
ificant. also, what version of excel are you using? I noticed the file is in .xls format. Is that also a requirement? thank you, Paul On Wednesday, June 25, 2014 12:23:34 PM UTC-4, Missy786 wrote: > Dear all, > > I would like to be able to extract certain data from one sheet to an

<    2   3   4   5   6   7   8   9   10   11   >