Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Adjustable Macro Code????

Sorry, you are dealing with a VB dummy here.
Below is cell content that is calculated when a user selects a month through
a conditional formatting dropdown, in this case January:
K:\Operations\Daily Production Sheets\2009\01-09\0109 Production
Reports.xlsb. This part is already done and works.
I need to pass this information from the cell location where it exists into
the macro statement: (ActiveWorkbook.UpdateLink Name:= _ €œ €œ, _
Type:=xlExcelLinks) in-between the quotes where you would typically indicate
the path to the desired file. I am not sure how to use variables to pass
information to the VB code from a cell range. This needs to be done to speed
up a process that links to twelve large monthly data gathering workbooks over
a WAN. The above will allow only the month in question to have the link
updated with daily information greatly speeding up the process.

Thank you for your time

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Adjustable Macro Code????

With the full filespec in A1:

Sub up_it()
Dim s As String
s = Range("A1").Value
ActiveWorkbook.UpdateLink Name:=s, Type:=xlExcelLinks
End Sub


--
Gary''s Student - gsnu200831


"Loopi" wrote:

Sorry, you are dealing with a VB dummy here.
Below is cell content that is calculated when a user selects a month through
a conditional formatting dropdown, in this case January:
K:\Operations\Daily Production Sheets\2009\01-09\0109 Production
Reports.xlsb. This part is already done and works.
I need to pass this information from the cell location where it exists into
the macro statement: (ActiveWorkbook.UpdateLink Name:= _ €œ €œ, _
Type:=xlExcelLinks) in-between the quotes where you would typically indicate
the path to the desired file. I am not sure how to use variables to pass
information to the VB code from a cell range. This needs to be done to speed
up a process that links to twelve large monthly data gathering workbooks over
a WAN. The above will allow only the month in question to have the link
updated with daily information greatly speeding up the process.

Thank you for your time

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Adjustable Macro Code????

Thank you. One quick question. How do i indicate the tab location where full
file spec in A1? The passed on link name will be in a hidden tab named
"lists". Is there code for sheet select or something of that nature?

"Gary''s Student" wrote:

With the full filespec in A1:

Sub up_it()
Dim s As String
s = Range("A1").Value
ActiveWorkbook.UpdateLink Name:=s, Type:=xlExcelLinks
End Sub


--
Gary''s Student - gsnu200831


"Loopi" wrote:

Sorry, you are dealing with a VB dummy here.
Below is cell content that is calculated when a user selects a month through
a conditional formatting dropdown, in this case January:
K:\Operations\Daily Production Sheets\2009\01-09\0109 Production
Reports.xlsb. This part is already done and works.
I need to pass this information from the cell location where it exists into
the macro statement: (ActiveWorkbook.UpdateLink Name:= _ €œ €œ, _
Type:=xlExcelLinks) in-between the quotes where you would typically indicate
the path to the desired file. I am not sure how to use variables to pass
information to the VB code from a cell range. This needs to be done to speed
up a process that links to twelve large monthly data gathering workbooks over
a WAN. The above will allow only the month in question to have the link
updated with daily information greatly speeding up the process.

Thank you for your time

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Adjustable Macro Code????

I figured out how to get this done. Your suggestion worked perfectly and
really sped up the entire process for my end users....

Thank you very much

"Loopi" wrote:

Thank you. One quick question. How do i indicate the tab location where full
file spec in A1? The passed on link name will be in a hidden tab named
"lists". Is there code for sheet select or something of that nature?

"Gary''s Student" wrote:

With the full filespec in A1:

Sub up_it()
Dim s As String
s = Range("A1").Value
ActiveWorkbook.UpdateLink Name:=s, Type:=xlExcelLinks
End Sub


--
Gary''s Student - gsnu200831


"Loopi" wrote:

Sorry, you are dealing with a VB dummy here.
Below is cell content that is calculated when a user selects a month through
a conditional formatting dropdown, in this case January:
K:\Operations\Daily Production Sheets\2009\01-09\0109 Production
Reports.xlsb. This part is already done and works.
I need to pass this information from the cell location where it exists into
the macro statement: (ActiveWorkbook.UpdateLink Name:= _ €œ €œ, _
Type:=xlExcelLinks) in-between the quotes where you would typically indicate
the path to the desired file. I am not sure how to use variables to pass
information to the VB code from a cell range. This needs to be done to speed
up a process that links to twelve large monthly data gathering workbooks over
a WAN. The above will allow only the month in question to have the link
updated with daily information greatly speeding up the process.

Thank you for your time

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Adjustable Macro Code????

Thanks for the fedback.
--
Gary''s Student - gsnu200831


"Loopi" wrote:

I figured out how to get this done. Your suggestion worked perfectly and
really sped up the entire process for my end users....

Thank you very much

"Loopi" wrote:

Thank you. One quick question. How do i indicate the tab location where full
file spec in A1? The passed on link name will be in a hidden tab named
"lists". Is there code for sheet select or something of that nature?

"Gary''s Student" wrote:

With the full filespec in A1:

Sub up_it()
Dim s As String
s = Range("A1").Value
ActiveWorkbook.UpdateLink Name:=s, Type:=xlExcelLinks
End Sub


--
Gary''s Student - gsnu200831


"Loopi" wrote:

Sorry, you are dealing with a VB dummy here.
Below is cell content that is calculated when a user selects a month through
a conditional formatting dropdown, in this case January:
K:\Operations\Daily Production Sheets\2009\01-09\0109 Production
Reports.xlsb. This part is already done and works.
I need to pass this information from the cell location where it exists into
the macro statement: (ActiveWorkbook.UpdateLink Name:= _ €œ €œ, _
Type:=xlExcelLinks) in-between the quotes where you would typically indicate
the path to the desired file. I am not sure how to use variables to pass
information to the VB code from a cell range. This needs to be done to speed
up a process that links to twelve large monthly data gathering workbooks over
a WAN. The above will allow only the month in question to have the link
updated with daily information greatly speeding up the process.

Thank you for your time



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
Page Break 10% and not adjustable [email protected] Excel Discussion (Misc queries) 1 May 31st 08 08:57 AM
Chart adjustable range iperlovsky Charts and Charting in Excel 2 May 15th 08 09:40 PM
Adjustable Font Size Darren Hill Excel Programming 6 October 17th 07 05:53 PM
how to write a macro that copies adjustable hyperlinks into a sprd BROCK8292 Excel Discussion (Misc queries) 3 September 21st 07 06:18 PM
Adjustable Rate APR Xhawk57 Excel Discussion (Misc queries) 4 February 15th 06 06:14 PM


All times are GMT +1. The time now is 03:36 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"