Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
This is proberably v easy, however I can't figure it I use a VBA macro to call up some infor and part of it is Worksheets("Gate A").Rows("10:3000").EntireRow.Hidden = False Worksheets("Question Database [Q]").Range("con_control").Copy With Worksheets("Question Database [Q]") "Gate A" & "Question Database" Are now held in a workbook calle 'Database' How do I amend the Macro to look at the sheet in the workbook rathe than the workbook it is in now??? Thankyou in advance Ni -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As long as Database workbook is already open.
Workbooks("Database").Worksheets("Gate A").R .... etc.. If it's not already openthen you could use this: Workbooks.Open ("C:\Database.xls") -- Rob van Gelder - http://www.vangelder.co.nz/excel "Nic@Rolls-Royce " wrote in message ... Hi This is proberably v easy, however I can't figure it I use a VBA macro to call up some infor and part of it is Worksheets("Gate A").Rows("10:3000").EntireRow.Hidden = False Worksheets("Question Database [Q]").Range("con_control").Copy With Worksheets("Question Database [Q]") "Gate A" & "Question Database" Are now held in a workbook called 'Database' How do I amend the Macro to look at the sheet in the workbook rather than the workbook it is in now??? Thankyou in advance Nic --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change workbook sheet reference using cell A1 to change a vairable | Excel Worksheet Functions | |||
Open Another Workbook and Call Macro | Excel Programming | |||
Call macro from active workbook-duplicate shortcut keys | Excel Programming | |||
Call a macro in other workbook | Excel Programming | |||
Call an Excel Macro when a Sheet is selected | Excel Programming |