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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlinks - Automatically Display Comments

Status
Not open for further replies.

Bru77

Technical User
Jul 2, 2004
11
GB
Hi,

I'm new to macros and visual basic and am not sure about it at all. I have an excel workbook here with a building plan of a warehouse that contains, among other things, 20 network printers. Each printer on the floor is represented by a particular cell that contains a comment with info like printer name and type etc.

I have a second sheet in the workbook listing all the printers and all sorts of extra info. The name of each printer on this second sheet is hyperlinked back to the first sheet (main floor plan) to locate each printer when you click on the name. I would like however for the active cell to be a bit more prominent when you hyperlink to it i.e can I get the comment on the active cell to display automatically when you hyperlink to it.

I dont think this can be achieved without using the VB editor. I'm not experienced enough to figure out how to do it. Any Ideas?

Thanks

Brian
 
which version of excel are you using >>?

Chance,

Filmmaker, taken gentleman and He tan e epi tas all change on monday
 
The code for adding a comment is below

Code:
    With Range("A1").Comment
        .Visible = False
        .Text Text:="Hello World"
    End With

To return the active cell , search in this forum for Target Cell. There are quite a few threads on teh topic

Chance,

Filmmaker, taken gentleman and He tan e epi tas
 
sorry that should be .visible = true

Chance,

Filmmaker, taken gentleman and He tan e epi tas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top