Question about Excel (SS8SATAS5128400R)

2 Answers

Variables in Macros?

I have two worksheets and want to
1) select a cell in sheet 1 (cell may change with each search),
2) copy that value,
3) search for the value in the other sheet (filter)
4) copy the values returned and
5) place those values in a specific region in the first spreadsheet

I can do this manually in a macro, but I don't know how to pass a new cell value each time I run the macro in step 1. The value remains hardcoded to the initial value recorded. Do I have to ask the user to select the cell? But how do I capture in in the macro and use it?

The macro code:
Sub Macro9()
' Macro9 Macro

With ActiveWindow
.Width = 933.75
.Height = 573.75
End With
ActiveSheet.Range("$A$1:$GH$1670").AutoFilter Field:=2, Criteria1:= _
"=DM Review", Operator:=xlAnd
Application.CutCopyMode = False
Sheets("2008 Edit Cal Deadlines").Select
End Sub

Thank you for your help!

Posted by on

2 Answers

  • Level 1:

    An expert who has achieved level 1.


    An expert whose answer got voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 5 Answers
Re: Variables in Macros? - Excel (SS8SATAS5128400R) Network Storage Systems

Are you still looking for an answer?

Posted on May 20, 2008

Re: Variables in Macros? - Excel (SS8SATAS5128400R) Network Storage Systems

God knows

Posted on Feb 12, 2008

Add Your Answer

0 characters

Uploading: 0%


Complete. Click "Add" to insert your video. Add


3 Points

Related Questions:

2 Answers

Excel formula creation

= (a3) minus (b3) won't do it for you?

Sep 05, 2008 | Excel (SS8SATAS5128400R)

1 Answer


You will need to write a Macro that questions each position and turns it into a word depending on it's value ...

Something like :

DIM WordValue as String
DIM LenghtIndex as integer

FOR lenghtindex = 1 to Len(ExcelCellValue) DO

CASE StrCpy (Number, LenghtIndex , 1)
1 : WordValue = WordValue & "one"
2 : WordValue = WordValue & "two"
3 : WordValue = WordValue & "three"
4 : WordValue = WordValue & "four"


If you want it to realy say fourthy four when the value is 44 instead of have it say "four four" you need to question the position. If it's in second position starting from left it will be fourty , if it's in third place it will be fourhundred ... etc

Aug 22, 2008 | Network Storage Systems

1 Answer

Excel question

You can import data from one sheet to another. If you want to bring a total from Sheet 1 to Sheet 2, then in Sheet 2 enter [=sheetname!cell] (without the brackets of course. You will now have the data from Sheet 1 in a cell in Sheet 2 and you can do anything you want with it. One note: if the sheet name has a space in it (Sheet Name) you have to enclose the name in single quotes; that tells it that the whole thing is the name. For example, Monthly Sales, A10 is the total for last month; to put it in this month for a running total, you would enter in Sheet 2 ['Monthly Sales'!A10] (without the brackets again). Now you can have a running total between the two sheets.

Aug 19, 2008 | Excel (SS8SATAS5128400R)

1 Answer

HELP with macro config

Hi Hss Holdings,

The easiest way to do this is to use a formula called vlookup. You need to have the raw data some where in the workbook, but it can be a separate sheet. Put all the raw data in a table, make sure the account number is on the furthest left column, then start entering the formulas

vlookup(value_to_find, table_to_check, column_index_number, range_lookup(true/false))

value_to_find = the value you want to find on the left most column of the table
table_to_check = the table you want to find the data from
column_index_number = the column number of the data field you want to return into this cell, 1 = the left most column.
range_lookup = false for an exact match, true for the nearest match

Say the table is on sheet2 between A1 and E300

B15 is whatever you type, so no formula needed here
B12 =VLOOKUP(C1,Sheet2!A1:E300,2,FALSE)
G12 = B12 =VLOOKUP(C1,Sheet2!A1:E300,3,FALSE)

Jul 12, 2008 | Excel (SS8SATAS5128400R)

1 Answer

Prevention of delition of cell which has a formula

If you right click the cell in question and go to Format Cells..., on the protection tab there should be a check mark in the locked box. Go to the tools menu and choose Protect and Protect Sheet, enter a password and your cells will be protected.

Any cells you want to allow changes to when the sheet is protected should have the Locked checkmark removed.

Jun 16, 2008 | Excel (SS8SATAS5128400R)

2 Answers

Version Tracking in a workbook

Hi blackhand18,

This might be different on your version of excel but try this


Jun 04, 2008 | Excel (SS8SATAS5128400R)

2 Answers

Attendance sheet in Excel

Hi KDina,

If you need me to work on this project for you please contact me at

May 17, 2008 | Excel (SS8SATAS5128400R)

3 Answers

Excel password removing

could you please supply us with the version of Excel you are using? it's under Help About Excel

Mar 04, 2008 | Excel (SS8SATAS5128400R)

2 Answers


I saw on ebay they had some Brand New Diskless versions and One Used Working one. I know it is not a fix but a lot cheaper than the $1200-$1500 they used to be.

Nov 05, 2007 | Anthology Solutions Yellow Machine P400...

5 Answers


If you don't have MS Office, then you will have to purchase either the Excel component as a stand alone but you would be better off with the whole MSOffice as it contains your Word processor, Database, Excel, Powerpoint presentation software and in the 2003 version also Publisher.

It is not too badly priced anymore, but if you cant afford it then you may be able to borrow a copy whilst you are doing your course from a friend, but you will have to uninstall it afterwards.

Oct 26, 2007 | Excel (SS8SATAS5128400R)

Not finding what you are looking for?
Network Storage Systems Logo

Related Topics:

85 people viewed this question

Ask a Question

Usually answered in minutes!

Top Excel Network Storage Systems Experts


Level 3 Expert

413 Answers

Brad Brown

Level 3 Expert

13325 Answers

Jose Cada
Jose Cada

Level 3 Expert

3530 Answers

Are you an Excel Network Storage System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides