excel & vba 2007

  1. A

    How to Split Alt Enter Column Data into Separate Rows with respect to Row A..

    Hello Guys, Please help me.. I have large data in Excel sheet in following format <tbody> A 32423 2234325 12131 11231 2534R 323422 1245 224241 112125 21212 353453 464363 545352 12423 123525 22424 B 114343 12342 2E23R 1342 1423R 25346 1324 1234 2525 1234 2522 </tbody> I want to...
  2. J

    Sum cells only if 6 weeks before todays date

    I'm looking for a formula that will sum together cells in a column but only if the data comes from 6 weeks before todays date. The column with data would be B1:B999 The column with dates would be A1:A999 I'm presuming it would be something like =SUMIF(B1:B999,"<"&TODAY(),A1:A999) however this...
  3. S

    Need help in Excel to webpage conversion

    Hi, I have an excel containing userforms,formulas and 2-3 tables and i want to create a webpage for the same so that it can be accessed via webpage and excel file will no longer be required. Is there any way to do this?
  4. S

    Need a update code in userform VBA

    I have the below code to enter the data in the range A2:B6 using Userform. I want to make changes to it,I want to check if combobox value already exists then i just update the corresponding textbox otherwise add a new row.Comboxbox has values-Class 0 to Class 4 and Textbox has numeric values...
  5. R

    The API function GetOpenFileName does not work in Excel 2010, but works in Excel 2007

    The function GetOpenFileName does not work in Excel 2010 (32 bit) in Windows 7, but does work in Excel 2007 (32bit) in Windows. The window does not open and returns "false" to Output. To test the code, you need to run the sub startit. The problem happens in thCommonFileOpenSave, Line containing...
  6. M

    set a default format for phone number

    Can I set the default format for phone number? I know the Format Cells feature of MS Excel. But I want some extensive kinda requirements. Like if user enter phone number +1 923-456-7890 then it should automatically formatted by removing extra spaces, special characters and the country code...
  7. R

    Please help with vba code!

    Hello, I am having issues making this line of code work. I used record macro and plugged in the formula I created. It is too long for VBA and I cannot properly continue on the next line. Can someone help me break this formula into multiple lines on VBA? ActiveCell.FormulaR1C1 = _...
  8. V

    How to validate and combine the two excel vlookup column results to one column

    Hi Guys, I have two vlookup formulas in two columns of a sheet which validates the value whether it is "Pass" or "fail" from another sheet of the same workbook. Here are the below 2 formulas :- 1) =IF(VLOOKUP(BY2&G2&BG2,Sheet2!A:I,9,0)>=BV2,"Pass","Fail") 2)...
  9. A

    Copying and pasting data from multiple website into excel using VBA

    I am new to VBA coding. I want some data from NSE-Company tracker websites. I tried using below code Private Sub IE_Automation() <code style="margin: 0px; padding: 0px;">Dim R As Long Dim IE As Object Dim ieurl As String Set IE = CreateObject("internetexplorer.application") IE.Visible = True...
  10. K

    Excel 2007 only retrieving data from SQL Server till the first semicolon. How to get the complete Data?

    ​Hi, I have an issue and I hope someone in this forum could help me. I am trying to retrieve "XML Data" of a sequence . I am connected to SQL Server and I am able to query the Database. However when I get the Result XML Data, I don't get the complete data. It seems that I am only getting the...
  11. V

    Application Defined or object defined error - Run time error 1004

    Hi Guys, I'am trying to write a small script to delete the "Cancelled" word in a column and keep the "Shipped" and "delivered" words. Below is the code Sub removecancelled() Dim st As String, i As Integer, lastrow1 As Long st = WorksheetFunction.Match("Status", Range("1:1"), 0) lastrow1 =...
  12. P

    Excel to powerpoint template

    Hello Im an intern at a ecommerce company, and every day i have have to produce 80 Powerpoints from data that i recieve in an excel file. So i have an powerpoint template, where i need to change 10 fields, fields that i have to pull from the excel file. Each line containing 10 columns of...
  13. A

    VBA code for switching between Main tabs

    Greetings. I am writing a custom tab ribbon and I discovered that sometimes the program will switch to "Home" tab. I would like to add a command line that will assure that the program will remain in my custom ribbon tab. any Ideas? thanks.
  14. S

    Trying to lock cells in one worksheet depending on value in another worksheet cell

    Hello, Any ideas as to why this will not run. I've been playing with it all day and can't figure out why it stops after the If statement is evaluated. I'd bet money it's something minute I'm overlooking but I can't find it. I have changed everything I can think of in the two statements...
  15. P

    Auto hide/unhide random rows using Macros

    Hi, I am very new to macros and try to use them by visiting similar queries and trying out the suggested codes. But this one problem I am not able to solve. I am not sure whether this exact thing has been covered or not hence I am posting this. 1. So I have a set of values in a drop-down(from...
  16. V

    Display all next 20 years leap year vba

    Hi Guys, I would like to know how to print next 20 leap years in vba program I have a function to find leap year as below, but how to print the years in excel A column can you help me ? Public Function isLeapYear() ' returns FALSE if not Leap Year, TRUE if Leap Year isLeapYear =...
  17. G

    Find File Window - Workbook when its not in same folder location

    Hi All, I have a question. I have the following code saved in my macro: 'Open ITEM MASTER SKU Workbooks.Open Filename:= _ "R:\Shared\TEAM\VMI FILES\ITEM Master SKU (NEW).xlsx", ReadOnly:=True, Notify:=False However, I would like to add in some code that will open a...
  18. G

    AutoFill 1004 runtime Error - Create a If error skip?

    Hi All,<o:p></o:p> <o:p></o:p> I am using this autofill code for my macro.<o:p></o:p> <o:p> </o:p> Sheets("Data").Select<o:p></o:p> 'This counts the # of Rows in the Coulmn A<o:p></o:p> IngoMaxRo = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row<o:p></o:p> <o:p> </o:p><o:p>...
  19. A

    How to replace a list of different words with a specific word in excel? Experts help req

    Hi Experts, I am really in need of yours help. I am using Excel 2007 Version. I have around 3000 rows of data in excel and in each row there is a text "AB10" I want all of "AB10" replaced with different series of words. "AB10" Replaced with "A1" "AB10" Replaced with "A2" "AB10" Replaced...
  20. C

    Excel Macro to copy to a data sheet then clear the copied

    I am working on a excel sheet, where I have a 4 cells that i enter information into. I am trying to make a button inside this sheet that has a macro assigned to it. The button needs to copy the cells (E3:E6) in the column (E) once it has copied the data from these cells paste them to another...

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