Should Be Easy, Having Trouble

May 18, 2006

I'm having real trouble selecting a series of rows based on variables for the purpose of cutting them and pasting them elsewhere in the spreadsheet. For example, if this is my spreadsheet

row
2 I Hate
3 Bill
4 O'Reilly

I want my code to select the range of 2:4, cut them, and paste them elsewhere but I want 2:4 to be variables. For example

Fun = 2
Stuff = 4

Rows(Fun:Stuff).Select
Selection.Cut

But doing "Rows(Fun:Stuff).Select" does not work at all. If you do Rows(Fun).Select, this works to select Row 2, but I can not use the variables to select a range.

View 2 Replies


ADVERTISEMENT

Sumproduct Trouble

Jun 5, 2009

I am a Project Manager, Surveyor involved in new ships building. I have to control and report the budget and actual hours every month and at the end of the project. I need to calculate the sum of the actually spent hours for the inspections done every month and send them to our head office. I use SUMPRODUCT function but Excel displays #VALUE! error eventhough there are no cells used in the formula which contain text!

The formula in E11 = SUMPRODUCT(--(MONTH(E2:E8)=MONTH(E10)),--(YEAR(E2:E8)=YEAR(E10)),H2:H8). E2:E8 and E10 are formated as a date. I tested all of them with ISNUMBER and the result is TRUE!!! Is there other formula I can use for the intended purpose?..............

View 4 Replies View Related

Formula Trouble In VBA

Aug 9, 2009

I'm getting a compile error before I even get a chance to use it. I'm sure it's simple but it's got me stumped.

View 3 Replies View Related

Sumif Trouble

Apr 20, 2009

why the attached formulas ("Datasum" tab E2:AB4) are not working properly? I am not looking for a cumulative total (which I appear to be getting) but rather just the number of fruit requests by hour.

View 4 Replies View Related

Trouble With Compiling 2 Ranges Into A Summary

Apr 23, 2009

I have looked all over the place but nothing seems to work for me.
In detail, I have a quote book i made with two sheets for different types of items on them. For example:

Sheet 1 is for wooden items, and sheet 2 is for metal items.
So after i enter all the items on sheet one and sheet two, I want to be able to combine all the items from both sheets into one summary sheet that i can send to the customer.

I tried consolidate, and messed around with pivot tabels but it didnt seem to be what i'm looking for.

View 9 Replies View Related

Having Trouble Opening An Access File Using This Code.

Feb 9, 2009

Having trouble opening an access file using this code. Using the following code

View 3 Replies View Related

Trouble Setting Focus After Closing MsgBox

Mar 31, 2008

I am using the TextBox.Change method to test for numerical input. How can I highlight incorrect input after closing the MsgBox? The following code doesn't always work:

If Not IsNumeric(TxtStage1.Value) Then
Response = MsgBox("Numerical value required", vbExclamation + vbOKOnly, "Invalid input")
TxtStage1.SetFocus
TxtStage1.SelStart = 0
TxtStage1.SelLength = Len(TxtStage1.Text)
End If

View 9 Replies View Related

Trouble With Date Format When Making One Range Equal To Another

Jun 18, 2009

I am using something like this to copy data from one workbook to another

View 2 Replies View Related

Easy Way To Sum Every 6th Column

May 31, 2007

Is there an easy way to add every sixth column?

Example:
=A1+A6+A11+A16
Then
A2+A7+A12+A17

I am all the time doing something like this. Is there a formula or something of that nature that would sum every 6th cell down starting a a given point?

View 9 Replies View Related

Easy Row Delete With Code

Nov 24, 2006

This is the code I have so far:

Sheets("Oven Codes").Select
Rows("3:3").Select
Selection.Delete Shift:=xlUp
Sheets("Item Edit").Select
Range("I12:J12").Select
What I would like to do is have VB look to E1 to determine which row to delete. E1 could say 5 or 25.

View 9 Replies View Related

VBA Password Crack/Hack - How Easy Is It?

Dec 10, 2008

Ok, so I'm a little cheezed that I've been volun-told to give up an economic model that took me over 8 months to develop to a few investment bankers that will likely sell it to the highest bidder. Of course, with no credit to me.

I've already taken a few of the necessary steps to lock it down.

Examples:

- Lock/hidden cells along with sheet protection (with password) - to prevent viewers from seeing the formulas I used.

- protect workbook (with password) - to prevent copy/paste of the sheets

- VBA - Tools - VBA Project Properties - Protection - Set password - to prevent viewing of the macros

- Hiding sheets using "Very Hidden" in VBA - to prevent viewing of sheets in general.

I guess my real question is, when this is all said and done, how easy is it for someone to break through all the passwords that I've set up in the workbook? If it's ridiculously easy, how do I prevent it (if at all)? What else can I do?

View 10 Replies View Related

To Change All References In The Workbook Easy

Jan 8, 2009

I have many files that has a filepath references in the cell values, for example:

='\serverfolder1subfolder2[Filename.xls]Sheet'!$B$82

Is there a way to change all the references to direct to another place?

Filenames don't change, only the '\serverfolder1subfolder2 path

View 9 Replies View Related

Easy Navigation Of Multiple Sheets

Oct 2, 2007

I have a workbook with over 100 worksheets (all worksheet tabs are named). Since the tabs are not sorted in a numerical order (they are grouped by departments hence the numerical tab order does not apply), can I search for a particular worksheet tab using a search function? The CTRL F function doesnt allow searching for worksheet tabs. At the moment, I have to go through the tab names in order to find one particular tab.

View 3 Replies View Related

Easy Time Entry Mask

Apr 25, 2008

I have entered VBA code and tested it with success. If I then save & close the excel file and then re-open it, the mask time entry is not saved (time does not appear correctly after input) and per instructions I have designated (and am using) the cell input range.

View 9 Replies View Related

Easy Way To Copy Columns And The Formulas To A New Sheet?

Nov 3, 2013

I was wondering if there was an easy way to copy columns (headings) and the formulas to a new sheet. I'm currently working on Sheet 1, need to copy everything onto a new sheet so I can keep things separated by week..

Example, Sheet 1 is Week October 30th, would like my 2nd sheet to have same exact headings and formulas which I would then rename to Week Nov. 1st etc..

Also, is there a way that I can then copy the 4 sheets that would make up a month into a new spreadsheet so I can then start December...

View 5 Replies View Related

Easy Weighted Average For Thousands Of Items

May 29, 2008

I am trying to calculate weighted average cost for a list of thousands of items.

I will try to explain this as best I can.

Column A is item. Column B is Mode. Column C is Volume. Column D is Cost

There are only 2 Transmode Per Item. So each item is pretty much listed twice and I need to calculate the weighted average cost per item.

I know how to use the SUMPRODUCT function to calculate weighted average and could slowly go through the spreadsheet item by item calculating this, but is there a way to do this with some sort of formula? Similar to a Subtotal that would recognize each change item and calculate the Weighted Average at that change.

View 9 Replies View Related

Easy Navigation To Specific Ranges Or Areas

Jul 1, 2008

I have a spreadsheet that lists values for different grid lines. On top of each set of data, I have labels each line "Line A", etc. I want to put in possibly a pull down menu at the top of the sheet that the user could use to jump to whichever line they were interested in viewing. For example, if the user needs data from Line L, they could select Line L from the drop down menu and the spreadsheet would jump down to that area.

View 7 Replies View Related

Easy Way To Collapse Rows And Columns On All Sheets In Workbook

Jan 28, 2014

Is there an easy way to collapse rows and columns on all sheets in a workbook.

View 3 Replies View Related

Convert Large Number Of Row Data Into Columns For Easy Printing

Mar 1, 2014

i was stuck with some mass data which spans over many rows and columns. i am relatively new to excel and wanted to know how i can get this data arranged in a way where i can access all the data from a printable view. i have attached a file explaining basically what i want.

View 5 Replies View Related

Show Worksheets Tabs On Current Worksheet For Easy Access

Jan 12, 2009

You could use:

If ActiveWorkbook.Sheets.Count < 17 Then
Application.CommandBars("Workbook tabs").ShowPopup
Else
Application.CommandBars("Workbook tabs").Controls("more Sheets...").Execute
End If

The code doesn't do anything on my excel workbook which currently has like 20 workbooks, and it grows daily by like 4 or 5 worksheets.

View 9 Replies View Related

User Form-Easy Selection Of Data To Be Filled In The Form

Jun 3, 2006

find the attached workbook

I have a Database and user form, in the user form i have a field named “Vehicle No” this is a combo box from which a user needs to select the Vehicle numbers, and all these are working fine now, I need your help in the following:

When user selects the second field named "Select Vendor name" i need a pop up window which shows all the Vehicles belongs to the vendor which they have selected, and with the popup window user selects the vehicle number then the Vehicle number combo box should be filled.

Currently users have to select by scrolling through Combo box which takes long time and difficult to find by scrolling.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved