vbs

  1. E

    Setting beginarrow head style type in excel using VbScript

    Good Morning, I am writing a script in VbScript that interacts with excel and I am trying to set the hiLoLines property to create the BeginArrowHeadStyle, but I am unsuccessful. Noted below I have place my code of what I have so far and this is within a graph. Please help...
  2. P

    Problem saving VBScript Script Files

    Hello all, I'm used to Macro program writing but I'm new to VBScript Script Files and I cant seem to find what can be wrong no matter where I look. I have a problem with running this vbs file, getting this error: Line: 7 Char: 1 Error: "Object required: 'application' Code: 800A01A8 Dim...
  3. K

    vbs script suddenly started "unknown runtime error" on running macro in excel - any ideas??

    My script was running just fine up until about a week ago. Now it throws an error on the macro run statement. The macro runs fine in the spreadsheet when run manually. We did run windows updates, and an antivirus update; but that should not have changed anything in this - right? I'm running...
  4. E

    vba and vbs file name import

    Dear All, I have an issue with the following I have a code that saves a file under a name from one of the cells: Sub zapisintemp() ' ' zapisintemp Macro ' Dim Path As String Dim filename As String ' Range("A1:H1").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy...
  5. S

    Question on Password input

    Hello, I am using the following .vbs script to open, run, save and quit excel: Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open _ ("my_excel_workbook") objExcel.ActiveWorkbook.Save objExcel.Quit What happens in the excel sheet is a macro is...
  6. B

    Retrieve Value from SAP Field

    Guys im having trouble getting the value from an SAP field into my excel Column. I need to get the following value to copy into cell C5. I cant get SAP To copy the value or insert it into cell c5. all help appreciated. Set sapguiauto = GetObject("SAPGUI") Set app =...
  7. T

    VBS newbies...

    We are trying to write a script that opens Internet Explorer into a webpage that acts like a DOS screen. We then need to begin typing into said webpage. Below is the beginning code we have managed to make but it does not make the IE screen the current active screen to begin typing into and we...
  8. V

    Run macro only after file exist

    How do I ensure macro only can be executed upon the Book2 is open? The VBS code below will help to auto open the file upon data extraction but it will be delay a bit to open hence resulted error at 100. On Error function seems doesnt work. Im thinking is there any loop function to wait until the...
  9. D

    Error 800A9C68 running VBS using task scheduler

    Gentlemen, I am running this code via task scheduler, and the workbook is closed when it runs. At the end of the process, it gives me the following error; however, all the expected processes are perfect. I have also run the macro manually, and it works as expected. I suspect the VBS code has...
  10. D

    VBA Script emails but reboots excel

    Hey guys, I've worked hard to build a spreadsheet for ordering print job. It calculates cost, allows a file to be attached, and emails to our shop however, once it sends the email it reboots excel. Not sure why it does it but it always does. This is my VBS code that is attached to a button. It...
  11. J

    Formula on 3rd sheet that maps to 1st two sheets corresponding cells

    A simple explanation of what I am trying to accomplish is this: We have a .csv file that has a bit of post processing done on it. We take these 2 files and put them in 2 separate sheets within the same workbook in excel (done through VBScript). I then create a 3rd sheet and my goal is to...
  12. S

    VBS script for checking Microsoft Excel Versions?

    Hey Everyone! I'm new to the group and looking for some help on coming up with a VBS script that can check a users Excel version and perform an action depending on the version. We have 100s of users and it's either going to be Excel 2010 (14) or Excel 2013 (15). I've got the action part of...
  13. S

    Proper way tp close VBA, VBS, and BAT file to prevent, "<filename>.xlsm is locked for editing" issue?

    Hey gang, So I've noticed that I am evidently doing something incorrectly when I am invoking a particular bit of VBA code within a source.XLSM file. Here's my program file flow. script.BAT calls script.VBS which calls "ProcessCVS" subroutine within script.XLSM. Here are the pertinent...
  14. M

    Constraints - Need help returning a value due to multiple level of constraints

    HELLO, Looking for some help! I am attempting to set up an excell spread sheet to calculate my team members work loads. I am runniing into some issues. what i need to do is if a cell is given a value of an interger to return the full load value and if it is a "S" (shared value, 50% of the full...
  15. D

    Vbs autofilter copy and paste subroutine

    :) Hello everyone! I need another dose of Mr. Excel brilliance. I am trying to develop a subroutine that will autofilter, copy, and paste columns of data from one worksheet to another. Below is an example of a table (sht: "Master Daily Sched") I want to autofilter with the string...
  16. D

    Excel search function issues

    I am having a bit of trouble with a search function that I'm trying to implement in a Excel spreadsheet. I followed a tutorial online and adapted it to work for my uses. Unfortunately, it only can search and filter columns A - E. I updated the data range to include my whole sheet (A6:S100), but...
  17. D

    Vbs keyboard activated userform listbox

    Hello everyone! I seeking guidance on how to create a keyboard activated macro for a userform navigation worksheet listbox. I want to be able to access the userform anywhere in the workbook with the Control + M keyboard command. I have created the Userform listbox and dynamic range name...
  18. D

    Vbs macro that sorts and copies two columns and paste to selected worksheet

    Hello everyone! I am trying to learn something new and need guidance. Please offer suggestions on how I can improve the VBS script listed: Sub SATFILTER() ' SATFILTER Macro ' Filters Master Daily Schedule Worksheet for Employees Assigned to Work Saturday by the AutoFilter Field:=1 "NS"...
  19. andrewb90

    Clear contents with vba

    Hi there, I am trying to use VBA to clear the contents of column B of the same row(s) as the cells selected. I just can't quite figure out how to get it right. If D5 was selected then B5 would be cleared. If F7:G8 was selected then B7:B8 would be cleared. Thanks, Andrew
  20. E

    adding to a cell in a different row based on what time it is when a button is clicked

    I am trying to make a sub that when run (a button is clicked) it adds one to the value of a particular row based on what time it is. for example, my sheet has an hour in 8 rows column B (based on what shift is using the program the times will differ) When the button is hit It needs to add 1 to...

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top