Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. piker42

    Pivot Table PivotItems(x&).Visible VBA error

    When trying to select only a few items off of a Pivot table's field selection list, I can deselect items from the list if all of the items have been selected with a 'Show All' manually. The VBA code I use is ".PivotItems(5).Visible = False". However, if I try to select an item that is not...
  2. piker42

    Excel Workbook_Open Macro freezes

    Thanks, Mike. It seems to have worked but since I only have access to the latest version of Excel and had to save everything using it, I'm not sure what will happen next month when the users submit there workbooks saved in older versions. However, I'm going to update all the workbooks and the...
  3. piker42

    Excel Workbook_Open Macro freezes

    My original code was as follows: Private Sub Workbook_Open() Sheets("GIS Labor Supplier Spending").Select End Sub I tried rmikesmith's suggestion using 'ThisWorkbook.Sheets...' and it seems to have reduced the number of 1004 errors by over half. Would having the Excel workbooks saved under...
  4. piker42

    Excel Workbook_Open Macro freezes

    I have a simple statement in my Workbook_Open macro "Sheets("GIS Labor Supplier Spending").Select" which works fine if I open a single work book or if I open a number of files with this macro from Windows Explorer. However, if I open a number of files at the same time from the Excel Open...
  5. piker42

    RoundUp to 5

    Handling negative numbers also means that you have to decide whether rounding 'up' means 'close to' or 'farther from' zero. i.e.: does -142 become -140 (close to) or -145 (farther from)
  6. piker42

    Setting a 'const' variable using an IF test?

    Thanks, Genimuse, I wasn't trying to change the constant, just determine what the value should be for this session by using the IF or Select logic. OH Well. I'm going to try both of your suggestions to see how they work. I know one of them will.
  7. piker42

    Setting a 'const' variable using an IF test?

    Currently I set the ADO connect string for my site into a 'constant' that is used by all the asp pages on my site. This allows me to change the database that I connect to depending on whether I am in test mode or production mode. I now want to test for which server the code is running on and...

Part and Inventory Search

Back
Top