Re: $$Excel-Macros$$ Help with saving files with path in cell B2

2011-07-02 Thread Nasim
Hi Ashish, First of all congrats! You are a big help to all of us :) Also, Thanks a lot for your help. you. I tweaked your code a bit and got it to work the way I needed. now I have another problem: I am combining files from different location into one sheet (a new workbook). The list of files t

$$Excel-Macros$$ Help with saving files with path in cell B2

2011-07-01 Thread Nasim
eChanges:=False End With k = Len(Dir(strPath))' Just to change the Dir to strPath- it does change the path to strPath but starts from 1st file again and again and again strExtension = Dir Loop I searched a lot but could not find anything that I understand. Your help is greatly apprecia

$$Excel-Macros$$ Concatenation in formula

2011-02-24 Thread Nasim
B$1 .Range("E" & i).Formula = "=$A$" & (i - 1) & " & " & " - " & "$B$" & (i - 1) ' Does not work .Range("E" & i).Formula = "=$A$" & (i - 1) & " & " & Chr(34) & " - &q

Re: $$Excel-Macros$$ Sheets(2) refers to 2nd sheet in excell file not sheet with index2

2011-02-15 Thread Nasim
: http://www.tek-tips.com/faqs.cfm?fid=4090 So I changed the sheet's (name) in the properties window to "shtBonus" and then used it like this: shtBonus.Range("A1").select Once again, Thanks for your help and directing me to right direction. Best regards, Nasim On Feb 15,

Re: $$Excel-Macros$$ Sheets(2) refers to 2nd sheet in excell file not sheet with index2

2011-02-15 Thread Nasim
Dim WSB, WSH As Worksheet Dim u, t, p, q, LastRowH, LastRowB As Integer Set WSB = ThisWorkbook.Sheets(9) ' :I changed it to Set WBS = Thisworkbook.Sheet9 and it does not work Set WSH = ThisWorkbook.Sheets(2) I am still so confused. I appreciate if you could explaine this a bit more.

$$Excel-Macros$$ Sheets(2) refers to 2nd sheet in excell file not sheet with index2

2011-02-14 Thread Nasim
excel 2010? I appreciate your help. Best regards, Nasim -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN gr

Re: $$Excel-Macros$$ Copy files in folder except one file

2011-01-06 Thread Nasim
tly. Thanks a lot for your help. Nasim On Jan 6, 6:38 am, Paul Schreiner wrote: > I don't see where you're setting the variable: excelFile > > in the Editor, set a breakpoint at the statement: > Do While Excelfile <> "" > > and step through. > > an

Re: $$Excel-Macros$$ Copy files in folder except one file

2011-01-06 Thread Nasim
nt. Thanks, Nasim On Jan 5, 10:44 pm, ashish koul wrote: > try this it may help > > Fpath = BrowseFolder(Caption:="Select the folder .") > excelFile = Dir(Fpath & "\*.xls") > > Do While excelFile <> "" > >    If excelFile <

Re: $$Excel-Macros$$ Copy files in folder except one file

2011-01-06 Thread Nasim
Hi Paul, Your recommendation solved my problem. I removed the if statement I had and replace this line: Do While excelFile <> "" with this Thanks a lot for your help. Nasim On Jan 6, 6:38 am, Paul Schreiner wrote: > I don't see where you're setting the v

$$Excel-Macros$$ Copy files in folder except one file

2011-01-05 Thread Nasim
ot;Combined Manual Timesheets.xls").Sheets(1).Range("A" & (LastRow + 1)) ' Paste:=8 will copy the columnwidth in Excel 2000 and higher .PasteSpecial Paste:=8 .PasteSpecial xlPasteValues End With Application.CutCopyMode = False ActiveWork

$$Excel-Macros$$ Check if user has Outlook installed

2010-01-04 Thread Nasim
Hi All and Happy New Year! My users' files need to be email to me everyday. I know how to send the sheets with email but if a user does not have outlook it gives an error message. How can I check if user has outlook installed? Thanks.

$$Excel-Macros$$ Mimik tab on last control (last name text box)

2009-12-06 Thread Nasim
box) to PROPER but I noticed that if user tabs out of the box then it passes the text to the cell and when user clicks on save the tab does not happen so nothing is passed to the cell. How can I mimik a tab on last box to be filled? Thanks. Nasim

$$Excel-Macros$$ combobox to show 01 instead of 1

2009-12-06 Thread Nasim
Hi, I have a combobox that is populated from a named range on a sheet (days from1 to 31) I changed them to text to show as (01 to 31) but my combo box still shows 1 instead of 01. Can this be fixed? Thanks. Nasim

$$Excel-Macros$$ Copying from first file does not work + opens a save as dilog box for xlsx file

2009-12-02 Thread Nasim
I can see that this file is blank, but cells are protected! so there are 3 problems: 1- the xls file can not be opened 2- the save as for .xlsx opens 3- even in the .xlsx file the celles are not copied Thanks for your help. below is my code: Nasim Private Sub cmdSave_Click() Dim NewWorkbook As

Re: $$Excel-Macros$$ Excel file to open in it's own instance and do not let other files open in it's instance

2009-11-30 Thread Nasim
. I would appreciate your help. Thanks, Nasim On Nov 30, 5:26 am, Paul Schreiner wrote: > What you're looking for here is a thing called "modality". > What it EFFECTIVELY means is that the "mode" of the user form > is tied to the workbook. > if you look at &q

$$Excel-Macros$$ Excel file to open in it's own instance and do not let other files open in it's instance

2009-11-29 Thread Nasim
Hi, I have a userform which I would like to open in new instance and also minimize excel so only the userform is visible. I am using excel 2007 to write the codes but am saving it as excel2003. later i will need to create both versions for people with differnet versions (if it does not run on exce