Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default macro to run on a list of hyperlinks

Hi,

I have a lot of small changes I make in a standardized form (an excel
spreadsheet). The forms are stored in multiple locations on the network but
I have a list in a worksheet that has hyperlinks to every form. I am trying
to find a way to speed the process up of making the changes. I put an
example of a small change below. Can I make a macro that would in a selected
range open hyperlinks from my list, make the change, save the doc and then
move down the list to the next hyperlink?

Thanks,


Todd


Sub changes()
' Keyboard Shortcut: Ctrl+q
'
Range("G15:G101").Select
Selection.NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(*
""-""??_);_(@_)"
Range("I90").Select
Selection.ClearContents
Range("G89").Select
ActiveCell.FormulaR1C1 = "1"
ActiveWindow.LargeScroll Down:=-2
Range("A1").Select
ActiveWorkbook.Save
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default macro to run on a list of hyperlinks

'PUT CURSOR ON FIRST HYPERLINK AND RUN PROCEDURE
'CODE WILL RUN UNTIL IT COMES TO A CELL
' WITHOUT A HYPERLINK
Dim strCurrentWorkbook As String

On Error Resume Next

strCurrentWorkbook = ActiveWorkbook.Name

Do
If Len(ActiveCell.Value) < 0 Then
If ActiveCell.Hyperlinks.Count < 0 Then
ActiveCell.Hyperlinks(1).Follow NewWindow:=True
'--------------------------------------
'YOUR CODE FOR MAKING CHANGES GOES HERE
'--------------------------------------
ActiveWorkbook.Save
Else
Exit Do
End If
End If
Workbooks(strCurrentWorkbook).Activate
ActiveCell.Offset(1, 0).Select
Loop

ActiveWindow.WindowState = xlMaximized

hth,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"Todd" wrote:

Hi,

I have a lot of small changes I make in a standardized form (an excel
spreadsheet). The forms are stored in multiple locations on the network but
I have a list in a worksheet that has hyperlinks to every form. I am trying
to find a way to speed the process up of making the changes. I put an
example of a small change below. Can I make a macro that would in a selected
range open hyperlinks from my list, make the change, save the doc and then
move down the list to the next hyperlink?

Thanks,


Todd


Sub changes()
' Keyboard Shortcut: Ctrl+q
'
Range("G15:G101").Select
Selection.NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(*
""-""??_);_(@_)"
Range("I90").Select
Selection.ClearContents
Range("G89").Select
ActiveCell.FormulaR1C1 = "1"
ActiveWindow.LargeScroll Down:=-2
Range("A1").Select
ActiveWorkbook.Save
End Sub

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
Drop Down List with Macro/Hyperlinks cncf Excel Discussion (Misc queries) 4 June 15th 08 02:44 AM
Drop down list with hyperlinks... jtho13 Excel Discussion (Misc queries) 1 January 29th 06 07:20 AM
Change list to hyperlinks Gord Dibben Excel Programming 0 August 30th 04 10:48 PM
Change list to hyperlinks Ron de Bruin Excel Programming 0 August 30th 04 10:07 PM
Hyperlinks in drop-down list cdb[_2_] Excel Programming 1 April 4th 04 04:33 PM


All times are GMT +1. The time now is 10:09 AM.

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"