selection.numberformat

  1. H

    Range is not selecting what I want

    Hi, I have a small problem with my range option. I am trying to run mycode and it has to format some precise cells. My code seems to be good but when I run it, instead of selecting the range that I want, my macro is selecting the whole sheets so it detroys what I did previously.. Could someone...
  2. B

    Setting up a Macro to run on a highlighted area

    Hello, The computer system my company uses exports to excel in an ugly and unusable way. Normally i manually sort the data but I recently took an excel course and learned a bit about macro's. I have a macro set up to auto format the data but i was wondering if it can be set up to run on a...
  3. J

    Change my sheets

    Trying a little humor with the subject. :) I recorded the following macro in excel, then shortened/simplified it. If I am in Developer Mode and run it from there, it works great, but.. I am trying to assign the code to a button. When I do and click the button, it appears to be running on...
  4. F

    Dynamic Data for Macro - Stop Calculating

    I have dynamic report that will grow by about 200 rows per day. I'm new to VBA and trying to get the formulas to only calculate based on Active or filled rows. Any help would be great: Sub step1() ' ' step1 Macro ' ' Keyboard Shortcut: Ctrl+r ' Columns("W:W").Select Selection.Delete...
  5. C

    Loop for all worksheet

    Hi team, can anyone help me looping below macro for all the worksheet in workbook stuckup while looping Sub Loopforall() On Error Resume Next For Each cell In Range("C3:C250000,E3:E250000,Q3:Q250000,S3:s250000").SpecialCells(xlCellTypeConstants, xlNumbers) If Icell.Value >...
  6. K

    Modify VBCode that creates CSV text file

    Excel 2013 Layout: Cell A1: stores the network drive letter (currently set as P:) Cell A2: stores the name of the file (currently set as Test.txt) Row 4 has column headings: 1st Value, 2nd Value, 3rd Value Rows 5 to forever, but only Columns A, B & C have data in them. Currently I just...
  7. andrewb90

    Change cell formatting in VBA

    Hello all, I used a macro recorder to capture what I wanted, but when I run my code, the formatting doesn't seem to change. I'm using an If statment, and the value in the cell changes, so I know the code is working, but the formatting isnt. Range("L23").Select Selection.NumberFormat...
  8. K

    Run Time Error 1004 - unable to set the formula array property of the range class

    Hi there, I have a Macro, that is giving the a run time error 1004. All the formulas work if not applied through VBA, but I guess the length is a bit much. Can you advise on how to shorten the below code please? Sub SUBMITFLIGHT() Sheets("FLIGHT SCHEDULE").Visible = True...
  9. B

    Format Text to Percent & Value VBA

    Hello All trying to format one range of text to a percentage and a different range to a value. Code I am using below <colgroup><col width="72" style="width:54pt"> </colgroup><tbody> Range("D5:G64,L5:O64").Select Selection.NumberFormat = "0.0%" .Value = .Value...
  10. S

    For Loop Not Initialized

    Greetings, I need to run through a series of worksheets by the same name in different workbooks. I am receiving the "for loop not initialized" error on the last line. Not sure how to troubleshoot this and not really understanding the error in this portion of the code. Thanks! For Each...

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