Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all 49981 articles
Browse latest View live

AutoFilter & Populate a list box

$
0
0
Hello Everyone,

I am brand new to excel vba, so bear with me if this is very simple to solve.

I have a datasheet "dept_lookup", which has contact information based on Group, Dept, Job and State.

Users will be only show the userform "Intro" and based on the selections they make on that form (Group, Dept, Job), I would like to populate the "State" drop down with values from the filtered list of "dept_lookup" and then use that drop down selection to populate the contact 1, contact 2 and contact 3 information in the userform.

Any guidance or help is greatly appreciated.

Thanks..Test_Project_1.xlsm

file-picker thinks it is a folder-picker if the folder picker runs first?

$
0
0
Hi again and Happy New Years' Eve!!!

So one of the first things I want to do in this little project is allow the user the opportunity to save the workbook before my code shreds through it. Some time ago I found some code on the web that worked great in another project, so I brought it over. That code is the second code block below, which is called from the first code block.

The first code block just has a very little bit extracted for I was "lucky" and that is where all of my current headache resides. As you see in the first code block I set a variable to my file-picker, then offer (and presumably run) the back-up that allows the user to choose a folder in which to place the backup by the folder-picker, and it backs up the workbook.

After that runs we are back to the first code block and the file-picker runs. BUT: IF the folder picker has run, my dang file-picker thinks it is a folder picker! If I do not run the back-up procedure, the file picker runs perfectly. What important fact am I missing?


Code:

    Set fd = Application.FileDialog(msoFileDialogFilePicker)
    Set wb0 = ActiveWorkbook

    If MsgBox("Would you like to create a back-up file before proceeding?", vbYesNo) = vbYes Then
        Application.StatusBar = "...Please Wait - Performing Backup"
        Call SaveWB
    End If


    'Select workbook from which to import sheets with a fail-safe to abort the sub if no file is selected

    'Select the file to import from
    If fd.Show = -1 Then
        selFile = fd.SelectedItems(1)





Code:

Private Sub SaveWB()

    Dim diaFolder As FileDialog
    Dim strFolderPath As String
    Dim savedate As Date
    Dim savetime As Date
    Dim formattime As String
    Dim formatdate As String

    With Application
        .ScreenUpdating = False
        .DisplayAlerts = False
    End With
    ' Open the file dialog
    Set diaFolder = Application.FileDialog(msoFileDialogFolderPicker)
    diaFolder.AllowMultiSelect = False
    diaFolder.Show
    strFolderPath = diaFolder.SelectedItems(1)

    'Saves the current file to a backup folder
    savedate = Date    ' Current system date
    savetime = Time    ' Current system time
    formattime = Format(savetime, "hhMMss")
    formatdate = Format(savedate, "YYMMDD")
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveCopyAs Filename:=strFolderPath & "\" & formatdate & formattime & " " & ActiveWorkbook.Name
    ActiveWorkbook.Save
    Application.DisplayAlerts = True
    MsgBox "Backup Run - Stored in: " & strFolderPath

End Sub


Thanks for your thoughts and Happy New Year!!!

Lost visual Basic project (file not found)

$
0
0
Hello everyone
I have downloaded a file from this link
http://www.snb-vba.eu/bestanden/__af...eet_002_en.xls

After opening it, I encountered errors (File Not Found) then a message (We have found a problem with some content ...if trust the source click Yes) .. I clicked Yes and got an error alert (Lost Visual Basic Project >> Lost ActiveX Controls) with just close command button

Any help with that weird problem

Click button and freeze time textbox

$
0
0
Happy New Year all!

Theoretically speaking, Userform1 has a Commandbutton1 and a Textbox1. Textbox1 has a digital clock showing the current time including the seconds updating realtime. What code example options can one use to click Commandbutton1 and stop the time or freeze the time at that very moment in Textbox1 so the seconds do not update and therefore stop the time?

I tried the below but no luck there.

Code:

Private Sub Commandbutton1_Click()
Textbox1.Enable = False
End Sub

facing error while Opening a web Link using VBA

$
0
0
Dear All,


I have written a code for opening a particular web link using excel vba. I have also passed variable in the hyperlink. But it is giving an error and not working at all. I am attaching here my macro file. Kindly find out the mistake done by me and help me to resolve the issue.

Please revert.

I will be very thankful to you.

Vineet Madaan
Attached Files

Make a league schedule

$
0
0
Hi everyone!
I have a problem – I must make a seasson schedule for soccer, but my knowledge isn`t enough for this.
We have 8 teams, we will play in 3 rounds. We know starting date and finishing date, also we know dates, when we will take a brake. Games can be only on Wednesdays and Saturdays and each of these days just 2 games (4 teams will play, 4 - will rest). Is it possible to generate it in excel without manual work?
If yes, can anyone help me?

Can I hide these based on other cells value?

$
0
0
So I got this sheet - normally it would ofcourse hold 53 weeks.

I need 20 slots for accounts on a running year - but it's a damn hassle that they are always visible - because im scroling up and down through them all day long.

Is there some way I can make it that a given accountslot is hidden until I add a weeknumber in the DATAsheet? and then again, hide that slot when I close it bu entering a close-week.

DATASHEET.xlsx

Macro to import data from another workbook

$
0
0
Hi all,

i am creating data workbooks for each product with its technical specifications like weight of the product and different materials used, and based on the specifications, the price of the product changes.

Now if i put all the product details in one workbook, the workbook becomes more than 100 mb, so i have to create new workbooks.

Now since the rates of product material keeps on changing i need to update all the sheets to get the value of each product right.

Is it possible where i create a master worksheet and can call for product details from other workbooks, based on the name of the product, without opening the source workbook.

Please note the technical details of the product dont change and all products have unique codes.

Any help on this to get me started will be a huge time saver.

Regards

locked for editing error when reassigning a macro button

$
0
0
When I tried to reassign the macro button in excel 2013 it gave me a file in use locked for editing error.

Any ideas?

Getting a saving error when closing workbook. Keeps asking to save again and again

$
0
0
Hi Guys,

Have recently added to this code, now I'm getting an issue when closing the workbook. When I close the workbook (not Excel) it asks if I wish to save. i say yes, then it asks again and keeps asking. Sample attached.
User Name Manager,
password secret
Skeleton Tracker.zip

Code:

Option Explicit
Option Compare Text
Dim ws As Worksheet
Const MaxUses As Long = 5  '<- change uses
Const wsWarningSheet As String = "Splash"

Private Type mySheetVisibilityStructure
  sSheetName As String
  iVisibility As Long
End Type

Const sSheetNameThatMUST_REMAIN_VISIBLE = "Splash"


Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

  Dim wks As Worksheet
  Dim mySheetVisibilityStructureArray() As mySheetVisibilityStructure
  Dim i As Long
  Dim iVisibility As Long
  Dim iVisibilityErrorSheet As Long
  Dim sActiveSheetName As String
  Dim sErrorSheetName As String
  Dim sSheetName As String
 
  'Initialize the 'Sheet Visibiilty Structure Array'
  ReDim mySheetVisibilityStructureArray(1 To 1)
 
  'Save the 'Active Sheet' Name
  sActiveSheetName = ActiveSheet.Name
 
  'Verify that the 'Master Sheet' exists
  On Error Resume Next
  iVisibility = Sheets(sSheetNameThatMUST_REMAIN_VISIBLE).Visible
  If Err.Number <> 0 Then
    Err.Clear
    MsgBox "SAVE NOT DONE.  Data Integrity Error." & vbCrLf & _
          "In order to save this file Sheet '" & sSheetNameThatMUST_REMAIN_VISIBLE & "' MUST EXIST." & vbCrLf & vbCrLf & _
          "WARNING.  If this condition is NOT CORRECTED, Data may be LOST."
    Cancel = True  'Cancel Save
    On Error GoTo 0
    Exit Sub
  End If
  On Error GoTo 0
 
  'Disable 'Screen Updating' to eliminate Screen Flicker
  Application.ScreenUpdating = False
 
  'Save the 'Visibility of Each Sheet'
  'Make all Sheets Hidden Except the 'Master Sheet'
  For Each wks In ThisWorkbook.Sheets
      'Add an element to the 'Sheet Visibiilty Structure Array'
      'Put the 'Sheet Name' and the 'Sheet Visibility' in the Array
      i = i + 1
      ReDim Preserve mySheetVisibilityStructureArray(1 To i)
      mySheetVisibilityStructureArray(i).sSheetName = wks.Name
      mySheetVisibilityStructureArray(i).iVisibility = wks.Visible
     
    'Make the 'Master Sheet' visible and the Active Sheet
    'Hide All other Sheets
    If UCase(wks.Name) = UCase(sSheetNameThatMUST_REMAIN_VISIBLE) Then
      'Make the 'Master Sheet' visible and make the 'Master Sheet' the 'Active Sheet'
      wks.Visible = xlSheetVisible
      wks.Activate
    Else
      'Hide all other Sheets
      wks.Visible = xlSheetVeryHidden  'Can be 'xlSheetHidden' or 'xlSheetVeryHidden'
    End If
 
  Next wks
 
  'Turn Off Excel Events
  Application.EnableEvents = False
 
  'Cancel Save - to prevent recursion
  Cancel = True

  'Save this file
  ThisWorkbook.Save
 
 
  'Restore Original Sheet Visibility
  For i = LBound(mySheetVisibilityStructureArray) To UBound(mySheetVisibilityStructureArray)
    sSheetName = mySheetVisibilityStructureArray(i).sSheetName
    iVisibility = mySheetVisibilityStructureArray(i).iVisibility
   
    'A runtime error will occur if Excel attempt to hide all Sheets
    On Error Resume Next
    Sheets(sSheetName).Visible = iVisibility
    If Err.Number = 1004 Then
      Err.Clear
      sErrorSheetName = sSheetName
      iVisibilityErrorSheet = iVisibility
    End If
    On Error GoTo 0
  Next i
 
  'If a Sheet had a runtime error - restore it's original visibility
  If Len(sErrorSheetName) > 0 Then
    Sheets(sErrorSheetName).Visible = iVisibilityErrorSheet
  End If
 
  'Resume with the 'Original Active Sheet'
  Sheets(sActiveSheetName).Activate
 
  'Turn On Excel Events
  'Turn On Screen Updating
  Application.EnableEvents = True
  Application.ScreenUpdating = True


 'Reset Iterations in an attempt to prevent 'Circular Reference' Error
  Application.Iteration = True
  Application.MaxIterations = 1
  Application.MaxChange = 0.001

    ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
        False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
        AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
        AllowUsingPivotTables:=True
    ActiveSheet.EnableSelection = xlUnlockedCells
   

End Sub



Public Sub MakeAllSheetsVisible()
  Dim wks As Worksheet
  For Each wks In ThisWorkbook.Sheets
    wks.Visible = xlSheetVisible
  Next wks
End Sub

Private Sub Workbook_Open()
  For Each ws In ThisWorkbook.Sheets
        If ws.Name = wsWarningSheet Then
            ws.Visible = True
        Else
            ws.Visible = xlVeryHidden
        End If
    Next
   
    'record opening in remote cell
    With Sheets(wsWarningSheet).Cells(Rows.Count, Columns.Count)
     
    End With

Const sHide2 As String = "AA:AA, Ak:Ak, Ap:Ap, AQ:AQ, Av:Av, Aw:Aw, Bb:Bb, Bc:Bc, Bh:Bh, Bi:Bi, Bn:Bn, Bo:Bo, Bt:Bt, Bu:Bu, Bz:Bz, ca:ca "
Const sHide4 As String = "I:I, O:O"
Const sHide5 As String = "I:I, N:N"

With Sheet2
    Application.EnableEvents = False
    .Cells(1, 24).ClearContents
    Application.EnableEvents = True
    .Unprotect
    '.Range(sHide2 & 1).EntireColumn.Hidden = True
    .Range(sHide2).EntireColumn.Hidden = True
    .Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
        False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
        AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
        AllowUsingPivotTables:=True
    .EnableSelection = xlUnlockedCells
End With

With Sheet4
    Application.EnableEvents = False
    .Cells(2, 16).ClearContents
    Application.EnableEvents = True
    .Unprotect
    '.Range(sHide2 & 1).EntireColumn.Hidden = True
    .Range(sHide2).EntireColumn.Hidden = True
    .Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
        False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
        AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
        AllowUsingPivotTables:=True
    .EnableSelection = xlUnlockedCells
End With

With Sheet5
    Application.EnableEvents = False
    .Cells(1, 17).ClearContents
    Application.EnableEvents = True
    .Unprotect
    '.Range(sHide2 & 1).EntireColumn.Hidden = True
    .Range(sHide2).EntireColumn.Hidden = True
    .Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
        False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
        AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
        AllowUsingPivotTables:=True
    .EnableSelection = xlUnlockedCells
End With

    UserForm1.Show

  'Enable Timers on Workbook Open
  bGblInhibitTimers = False

  'Stop all timers
  On Error Resume Next
  Application.OnTime RunWhen, "SaveAndClose", , False
  Application.OnTime RunStatusBarWhen, "TimeTilExitTimer", , False
  On Error GoTo 0
 
  'Arm Timer to save and close workbook
  RunWhen = Now + TimeSerial(0, NUM_MINUTES, NUM_SECONDS)
  Application.OnTime RunWhen, "SaveAndClose", , True

  'Arm Timer to display time remaining
  RunStatusBarWhen = Now + TimeSerial(0, 0, STATUS_BAR_REFRESH_TIME_IN_SECONDS)
  Application.OnTime RunStatusBarWhen, "TimeTilExitTimer", , True

 Application.Iteration = True
  Application.MaxIterations = 1
  Application.MaxChange = 0.001
End Sub


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    On Error Resume Next
    Application.OnTime RunWhen, "SaveAndClose", , False
    On Error GoTo 0
   
    'Display Time Remaining Only When timers are enabled
    If bGblInhibitTimers = False Then
      RunWhen = Now + TimeSerial(0, NUM_MINUTES, NUM_SECONDS)
      Application.OnTime RunWhen, "SaveAndClose", , True
    End If
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
    ByVal Target As Range)

    On Error Resume Next
    Application.OnTime RunWhen, "SaveAndClose", , False
   
    On Error GoTo 0
    'Display Time Remaining Only When timers are enabled
    If bGblInhibitTimers = False Then
      RunWhen = Now + TimeSerial(0, NUM_MINUTES, NUM_SECONDS)
      Application.OnTime RunWhen, "SaveAndClose", , True
    End If

End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Stop all timers
  On Error Resume Next
  Application.OnTime RunWhen, "SaveAndClose", , False
  Application.OnTime RunStatusBarWhen, "TimeTilExitTimer", , False
  On Error GoTo 0
 
End Sub

Thanks in Advance

Create temporary data validation list

$
0
0
Hello everyone
I have the source data for data validation list in sheets("Data").range("A2:A" & LastRow)

All what I need is to create data validation list temporarily in sheets("Sample").range("F20:F34") if any cell within that range is selected
as soon as typing a letter
For example: If I selected cell F20 and typed the letter "D" a list would be created for the proper entries (Diafa,De'ia,Dareeba A,Dareeba B,Dareeba C)
and after choosing an entry delete the validation list

Hope it is clear
Thanks a lot for help
Attached Files

Auto-updating hyperlinked workbooks?

$
0
0
if there are a series of references from separate workbooks…

i.e. from A1-100 to B1-100 to C1-100 to D (301 workbooks/sheets in total, for example)… must workbooks B1-100 and C1-100 be opened and resaved to auto-update Workbook D when it’s opened - or when you open up D, will Excel automatically trace all the data back through the other books, even if they haven’t been opened since Workbooks A1-100 have been updated?

if all the books DO need to be opened to update - what workarounds or quick tips might there be to automate or speed up the process, so you don’t have to manually open & resave hundreds/thousands of books?


ADDITION:

apologies for my novice ignorance.
I did crosspost this at the following sites, unaware it was a no-no or was to include the links:

http://excelexperts.com/auto-updatin...nked-workbooks
http://www.vbaexpress.com/forum/show...ook-hyperlinks
https://social.technet.microsoft.com...ks?forum=excel
http://www.excelforum.com/excel-prog...workbooks.html
http://www.mrexcel.com/forum/excel-q...workbooks.html


thank you for your forgiveness and understanding.

Help Opening Outlook from Excel

$
0
0
Hello all, and Happy New Year,

I have tried to find a solution to an issue I've encountered, but haven't been successful so I am hoping someone can assist. I am running into a problem where a macro that I've been trying to utilize will not function properly if Outlook is not open. I have limited experience using macros and vba, so I apologize in advance if I've missed anything that a proficient programmer such as yourselves would know to resolve.

The macro I've incorporated into the workbook and have been testing for a day now was posted online by Ron de Bruin, and I've tweaked slightly, and has been working great for me; however, during testing recently, I encountered a scenario that I cannot figure out how to resolve. It does not function correctly if Outlook is closed when the macro is run.

The workbook is going to be sent to a user group who will complete the workbook, and then at the bottom of the sheet they are supposed to click a button that will run a macro to automatically send the workbook as an attachment in Outlook. The issue I cannot solve for that I really need help with is that I continuously receive errors when trying to run the macro when Outlook is closed. I've tried several solutions located in various postings, but nothing seems to work.

I've provided some details below if any would be able to suggest a resolution.


Errors received:

1) [Microsoft Outlook popup] ---------> Microsoft Outlook has stopped working. Windows is checking for a solution to the problem...
2) [Microsoft Visual Basic popup] ---> Run-time error '429': ActiveX component can't create object

err_macro_outlook-closed.png

vb_err429.png

System specs:
Office Professional 2013
Windows 7



Current VB code:

Code:

Sub Employee_Mail_workbook_to_Mgr_Outlook_3()
'Working in Excel 2000-2013
'Mail a changed copy of the ActiveWorkbook with another file name

    Dim wb1 As Workbook
    Dim wb2 As Workbook
    Dim TempFilePath As String
    Dim TempFileName As String
    Dim FileExtStr As String
    Dim OutApp As Object
    Dim OutMail As Object

    With Application
        .ScreenUpdating = False
        .EnableEvents = False
    End With

    Set wb1 = ActiveWorkbook

    'Make a copy of the file/Open it/Edit it/Mail it/Delete it
    'If you want to change the file name then change only TempFileName
    TempFilePath = Environ$("temp") & "\"
    TempFileName = "Survey - " & ThisWorkbook.Sheets("Sheet1").Range("D1").Value & "_" & ThisWorkbook.Sheets("Sheet1").Range("D2").Value & "_" & Format(Now, "yyyymmdd hhmmss")
    FileExtStr = "." & LCase(Right(wb1.Name, Len(wb1.Name) - InStrRev(wb1.Name, ".", , 1)))

    wb1.SaveCopyAs TempFilePath & TempFileName & FileExtStr
    Set wb2 = Workbooks.Open(TempFilePath & TempFileName & FileExtStr)


    '**************Add code to edit the file here********************
    'Insert a text and Date in cell A1 of the first sheet in the workbook.
    'Other things you can think of are for example, delete a whole sheet or a range.
    wb2.Worksheets(1).Range("C44").Value = "Electronically signed: " & Format(Now, "mm/dd/yyyy hh:mm:ss") & " by " & Environ("userdomain") & "\" & Environ("username")

    ActiveSheet.Buttons("Button 1").Delete
   
    'Save the file after we changed it with the code above
    wb2.Save


    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(0)
   
   
    On Error Resume Next
    With OutMail
        .To = ThisWorkbook.Sheets("Custom").Range("B14").Value
        .CC = ThisWorkbook.Sheets("Custom").Range("B20").Value
        .BCC = ""
        .Subject = ThisWorkbook.Sheets("Custom").Range("B10").Value
        .Body = ThisWorkbook.Sheets("Custom").Range("B4").Value
        .Attachments.Add wb2.FullName
        'You can add other files also like this
        '.Attachments.Add ("C:\test.txt")
        .Send  'or use .Display
    End With
    On Error GoTo 0
    wb2.Close SaveChanges:=False

    'Delete the file
    Kill TempFilePath & TempFileName & FileExtStr

    Set OutMail = Nothing
    Set OutApp = Nothing

    With Application
        .ScreenUpdating = True
        .EnableEvents = True
    End With
End Sub


Thank you in advance for any assistance you can provide :)

[SOLVED] Updating Pivots every time a macro executes

$
0
0
Hello All,

This is only a partial problem.

I have several userforms and any action that changes the sheets (writes or deletes data) has the following code:

Code:

Unload Userform
ThisWorkbook.RefreshAll
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True

Now the pivot tables are all on a sheet named "Pivots", and their data comes from a sheet named "Data." The userforms do not directly write or erase to/from these sheets.

What I've found is that the pivot tables do update, but not until the second instance of the code running. In effect, they are always one data change behind.

Any ideas how to make them update essentially in realtime once someone enters new data via a userform?

I also tried using on the data sheet:

Code:

Private Sub Worksheet_Change(ByVal Target As Range)
And then code to refresh each pivot table. This didn't work because nothing on the datasheet is actively changed. So I then tried it on one of the individual sheets where data is written too and had the same results as my original and simpler code (in that the update was one data entry behind).

Any thoughts?

compare name in one sheet with sheet and transfer entries

$
0
0
Hello,
I have a query which I hope someone can assist me with please.
In my sheet 'gruss' I have an entry in AA6 – Forjo.
I would like to be able to find this entry in my sheet named 'threes'.
I wish to know if it is not in the top two names in Col C under 'horse'. If this is the case I would like to have the top three names under 'horse' placed in AB6,AC6,AD6,which in my example attached would be AB6-Garnet,AC6-Jo Anconi,AD6-Blossom.

If it is in the top two then wish for the cells to remain blank.
Sheet enclosed with sample and result.
Attached Files

How to use RemoveDocumentInformation (RemoveDocInfoType) to remove INVISIBLE CONTENT

$
0
0
I want to use VBA , hopefully via the Workbook.RemoveDocumentInformation(RemoveDocIntoType) method, in order to specifically remove INVISIBLE CONTENT - that is, the last thing in the list when you manually fire up the Document Inspector. there is an item called "Invisible Content".

I reviewed the enumeration list here: https://msdn.microsoft.com/en-us/lib.../ff838242.aspx but none of them quite looked like Invisible Content item.

Any ideas - has anyone successfully done this before?

Enable/disable a command button

$
0
0
Dear Expert,
Please find attached example file and do the needful as per below: -

I am trying to make a user form for user login There will be two user, 1 is ADMIN (PWD admin123) and another GUEST (PWD guest123)
Admin will have complete access but as we log as guest Some buttons of above should disable. And if guest user will click some warning message should appear, Also note that all the sheet will be protected and GUEST can view/print only
Guest will be able to view only reports button and there will be 4-5 types of reports

in attachment I gave only one example for report and I would like that if I log as ADMIN all button will be enable, but if I log as GUEST only report button should be enable
Attached Files

Prevent VBA Reference library from changing

$
0
0
I have an Excel ADD-in that needs to use Microsoft XML 3.0 instead of 6.0. I try switching the library references and then saving the add in again but every time I open Excel it switches back to 6.0. How can I keep this from happening?
Thanks for any help. I am using Excel 2013.

VBA Outlook MSWORD EXCEL connectivity

$
0
0
Hi Folks,
I connected from excel to Outlook through Macro. Now I wanted to select a specific document using Browse (Which I succeeded ) and make them as Active Document and from that Say the Document has 16 pages (includes Images, Color fonts and normal texts). I wanted to look after specific keyword and from that I need to copy till the range I wanted and to display it in outlook...Is that possible?? Kindly help me in this. Struggling for past two weeks.

Need help with a formula using Row()

$
0
0
Hi guys.

I am trying to use this formula but using the current row number in the range.

Code:

=WORKDAY(TODAY(),INT((SUM(N$4:$N4))/($F$1-0.1)))
This is what I am trying.

Code:

=WORKDAY(TODAY(),INT((SUM(N$4:"N"&Row()))/($F$1-0.1)))
It doesn't work. :(

Does anyone know how I can get this to work?

Thanks
Triump
Viewing all 49981 articles
Browse latest View live