Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Send a command down a column

I regularly have report output of varying sizes that will have one column of
data (the column changes position too) that has hyperlinks. How can I record
a macro to remove the hyperlink for the entire row? I essentially want to
send the command down an unlimited number of rows.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Send a command down a column

the following sub should help:
----------------------------------------------------------------
sub ClearHL()

dim int_col as integer

int_col = 2 ' inputbox "Please put in the number of the column"

Columns(int_col).Hyperlinks.Delete

end sub
----------------------------------------------------------------

you can set int_col in various ways...just change it to what suits you
best.

hth

Carlo

On Dec 7, 10:31 am, mary wrote:
I regularly have report output of varying sizes that will have one column of
data (the column changes position too) that has hyperlinks. How can I record
a macro to remove the hyperlink for the entire row? I essentially want to
send the command down an unlimited number of rows.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Send a command down a column

One way is to highlight the column which contains the hyperlinks, by
clicking on the column letter.

Then ALT-F11 (will bring up the Visual Basic Editor)
CTRL-G (will open the Immediate Window)
then type the following:

selection.hyperlinks.delete (Enter)

Then close the VBE to return to the worksheet.

Hope this helps.

Pete


On Dec 7, 1:31 am, mary wrote:
I regularly have report output of varying sizes that will have one column of
data (the column changes position too) that has hyperlinks. How can I record
a macro to remove the hyperlink for the entire row? I essentially want to
send the command down an unlimited number of rows.


Reply
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
Send Open Spreadsheet using Command button [email protected] Excel Discussion (Misc queries) 0 August 23rd 07 01:08 PM
Auto Send email from IF command Stuiart Excel Worksheet Functions 0 November 13th 06 02:11 AM
What DDE command may I send to Excel to autofit a column? TheDers Excel Discussion (Misc queries) 0 October 30th 06 07:32 PM
Send to command - change default email application? Helen Setting up and Configuration of Excel 2 August 16th 05 02:31 AM
how to send a letter to all email addreses in column Sheena Excel Discussion (Misc queries) 1 June 3rd 05 08:31 PM


All times are GMT +1. The time now is 10:06 PM.

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

About Us

"It's about Microsoft Excel"