Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2012, 03:39 AM
tadleymansions tadleymansions is offline worksheet linking in VB Windows XP worksheet linking in VB Office 2003
Novice
worksheet linking in VB
 
Join Date: Aug 2012
Posts: 3
tadleymansions is on a distinguished road
Default worksheet linking in VB


Hi
I am trying to establish an Excel SpecialPaste "Paste Link" using VB code.

Is it possible? - I cannot see how.

John
Reply With Quote
  #2  
Old 08-17-2012, 07:55 AM
Catalin.B Catalin.B is offline worksheet linking in VB Windows Vista worksheet linking in VB Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Try the macro recorder, it will give you a good start point. The recorder is used by many users, from begginers to advanced...
Here is what the macro recorder came up after i manually pasted a link:

Code:
Sub Macro1()
'
' Macro1 Macro
'

'
    Windows("diverse calcule.xls").Activate
    Range("F11").Select
    Selection.Copy
    Windows("New Microsoft Excel Worksheet.xlsx").Activate
    Range("D21").Select
    ActiveSheet.Paste Link:=True
End Sub
Reply With Quote
  #3  
Old 08-18-2012, 08:02 AM
tadleymansions tadleymansions is offline worksheet linking in VB Windows XP worksheet linking in VB Office 2003
Novice
worksheet linking in VB
 
Join Date: Aug 2012
Posts: 3
tadleymansions is on a distinguished road
Default

Thanks - I'll certainly give that a try.
John
Reply With Quote
  #4  
Old 08-18-2012, 11:19 PM
Catalin.B Catalin.B is offline worksheet linking in VB Windows Vista worksheet linking in VB Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

You may find useful this approach, which does the same thing:
Code:
ThisWorkbook.Sheets("Sheet3").Range("F8").Formula = "='C:\Users\Catalin\Desktop\[New Microsoft Excel Worksheet.xlsx]Sheet1'!$I$16"
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
worksheet linking in VB "Auto-populating" data-worksheet to worksheet. meggenm Excel 4 02-04-2012 02:04 AM
Create/delete New worksheet ibrahimaa Excel Programming 5 01-16-2012 11:53 PM
worksheet linking in VB How to delete page not worksheet? rec Excel 6 05-20-2011 08:51 PM
worksheet linking in VB Can I use a formula to name a worksheet? nolesca Excel 3 06-07-2010 04:02 PM
worksheet linking in VB Worksheet copying? markg2 Excel 4 01-07-2010 10:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft