LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Using The Value property of the ActiveCell object

Hi Everybody

I have been working on two macros, and this step of the work I have to:

1- Edit the the Stock_Info macro in the Visual Basic Editor, adding a
line at the beginning of the macro that retrieves the value from the active
cell and stores it in a variable named "Stockname." (Hint: Use the Value
property of the ActiveCell object.) Edit the macro firther so that it opens
the worksheet referenced by the Stockname variable.

2- Test the macro by clicking a ticker symbol in the Stock List
worksheet and pressing Ctrl+t. Verify that the macro displays the worksheet
for that stock. Also test pressing Ctrl+m takes the user back to the Stock
List worksheet.

With what I tried I just got Run-time errors I will appreciate it if
anybody helps me to successfully continue with these two macros. Also, is
there anywhere I could learn more about the Value property of the ActiveCell
object?
Thank you in advance.

Sub Stock_Info()
'
' Stock_Info Macro
' This macro displays the AA worksheet, then selects cell C2.
'
' Keyboard Shortcut: Ctrl+t
'
Sheets("AA").Select
Range("C2").Select
End Sub
Sub Stock_List()
'
' Stock_List Macro
' This macro displays the Stock List, then selects cell A1.
'
' Keyboard Shortcut: Ctrl+m
'
Sheets("Stock List").Select
Range("A1").Select
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use the .Cells property to refer to ActiveCell? Caeres Excel Discussion (Misc queries) 9 October 7th 08 02:56 PM
ActiveCell.CurrentRegion property Microsoft Forum Excel Programming 4 January 11th 05 02:43 PM
How to check if an object has a certain property? J Excel Programming 1 December 5th 04 11:58 AM
Equivalent ActiveCell.Id property for Excel97 Rick De Marco Excel Programming 1 June 18th 04 02:28 PM
Page Object property Matt[_18_] Excel Programming 1 October 2nd 03 01:43 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"