script

  1. A

    feeding url from activeCell doesn't work

    Hi, i'm trying to write simple script to check webpage status. And i have a problem with feeding url address from active cell. Public Function GetServerResponse(url As String) As Integer On Error Resume Next With CreateObject("WinHttp.WinHttpRequest.5.1") .Open "GET", url...
  2. C

    Not just declare variable but set names etc for entire workbook????

    Ok, So I have a lot going on in this workbook and just trying to clean up all the script etc in this workbook and wanted to know if it is possible to declare everything below ALONG WITH Setting everything so when I get to the codes I dont have to "Set" anything just use the code like...
  3. C

    excel vbscript for command button to retry script

    So my workbook has a lot of script in it and I use "Bundles" of script to perform big functions, one such function that resides in a bundle of scripts reaches to SAP through GUI Scripting and pulls data. It is set to use an active window not with hard coded user and password info so if the user...
  4. L

    Conditional Formatting Rules for variable messages

    Hi Experts! I am trying to formulate the best way to create conditional formatting rules to be able to highlight the whole row based on the words found in column G. Basically, column G contains all the status of the processing of the macro. It is consist of a sentence or two. I want the rule to...
  5. A

    Downloading attachment from mailbox

    Hello, I need an EXCEL VBA script which will perform the following operations: 1. Open my Outlook 2. Read mail with a particular subject line (let's say ' TEST MAIL') 3. Download the attachement from that mail to Desktop location. Please help me with the script. Thanks,
  6. most

    Convert a string to a value does not work

    Why does this not work? According to the internet I could use Val() to convert a string to a value. Sub GotoColumn() Dim x As String x = InputBox("Goto column...") If IsNumeric(x) = False Then x = Range(x & 1).Column x = Val(x) Cells(1, x).Activate End Sub The script should activate...
  7. B

    Trouble with VBA email

    Hello. I'm working on a project that requires a button click to launch an Outlook message box with a pre-filled template. I have had success with using the =hyperlink("mailto") function, but the contents of the message exceed 255 characters. I'm very novice at VBA script, and although I have...
  8. M

    Old script not fully working

    Hi All A while ago I used a forum and posted a problem which was solved by using a VBA script. This script works most of the time but not always. The original problem I had was that I get given an excel sheet with 3 columns detailing a description, a part number and a location. I needed...
  9. F

    VBA script to select a value from a dropdown list

    Hi, I am new in VBA. I'd like to create a VBA script to select the value "associate" from a html dropdown list. Could you help me with writing this script? Here is the html code in the website <h2>Return To Station</h2> <div id="searchUserInputContainer"> <div...
  10. T

    Create database from SQL script or multiple tables with SQL script

    First off, I am an Access newbie. I have a DDL SQL query script that creates many different tables in a database. But, all I can find is a make table query that only works one table at a time. So, my first question is how do a create a database's tables from one DDL SQL script? Second...
  11. O

    Remap or Re-assign Enter key

    Hey, Hope all is fine. I would like to learn from you, how would I remap my Enter key to a Down arrow key? I tried a script but it does not work. Application.OnKey "{Enter}", "{DOWN}" Will appreciate. Thank u.
  12. O

    Adding another condition in a vba script line

    Hey, The following is a Vba script that would be needing some altering so that if the value in cell B3 is greater than 21 AND it is not equal to Selection.Column then my code. If Worksheets("HSheet").Range("B3") <> Selection.Column Then The above is missing B3 is greater than 21 condition...
  13. S

    Needing VBA script for parsing text file and returning a date

    I have multiple text files that I am having to open and record dates/times on an Excel sheet print out. I would like to have a script that can parse (read) those text files, finding certain words in a paragraph and return the date listed at the beginning of that paragraph?
  14. S

    Leading Zero issue

    I have an issue with the formatting of data. the script I have copies data from "PASTEDAT" tab and paste into "QUASAR Script" tab. So the data from the "Data"tab can be as follows 546882 546883 '092384 Copying the 546XXX numbers are ok. However, the resultant for the last number pastes into...
  15. W

    Decrease percentage weekly by week number

    Hi, I would like to use the week number to decrease the percentage by 2% every week. I have the date in B3,Time in D3, Week Number in F3,and 100% in H3. The date,Time,Week number update and run whenever the computer is switch on. Workbook opening script:Private Sub Workbook_Open()...
  16. J

    Save as to create a new folder and workbook based of a master workbook

    I need a dynamic batch file written to create all of Joe's timesheets for the year. Sunday is the end of the pay period. For example the Sunday in January 2019 is the 5th The file name would be 20190105 the folder will be named c:\Timesheet\2019\01-January\ The complete file path would be -->...
  17. N

    Pause VBA script for user input/confirmation ?

    Hiya, I'm a newly registered user with newly registered user problems !! VBA is steep learning curve for me, but hopefully with your help I will get there. I have a basic script that opens up three Excel spreadsheets, puts them in three separate tabs. My current issue is that the spreadsheets...
  18. B

    VBA - PublishObjects HTML Script

    I am using the following VBA code to create about 70 Web pages after some other updates are made to the sheet using another script. This worked flawlessly for several weeks and now all the sudden it is taking up to 20 minutes just to generate the first page. My scheduler only allows 20 minutes...
  19. J

    Script to change query parameters

    In my dBase, I have three queries that have a parameter that is coded Like"*TUC*" The dBase is designed to be used by various locations with different location coded. Is there a way to change the query parameter in these three queries via a script?
  20. A

    Adding specific number of rows

    Hi all – I cannot seems to find anything to fit my situation and everything I’ve tried so far has failed. I'm looking for a macro that will look at the values in column E that have different ID values that should be in minimum quantities of 26 for each unique ID. In the case where there are...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top