Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
workbook
- Page 1
Re: How to open an Excel Document in VB.NET
Programming
Software Development
3 Days Ago
by Pelorus_1
A Microsoft Excel document can be opened in VB.NET using the Microsoft.Office.Interop.Excel library. Using Workbooks.Open(), open the
workbook
, and then display the Excel window. Reference the Excel COM object in your project.
vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Siddharth_1
…New Excel.Application ' Source Excel Dim objWorkbook As Excel.
Workbook
'source
workbook
object Dim objWorksheet As Excel.worksheet 'source worksheet object…() Dim xl As New Excel.Application Dim wbTarget As
Workbook
'
workbook
where the data is to be pasted Dim wbThis As…
Re: vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Klahr_R
… Drives, directorys, workbooks and worksheets 2. User selects drive, directory,
workbook
and range to be copied and these are assigned to… appropriate objects in VB6. 3. A
workbook
used for a target is open and the sheet and… information is in your text box used to open a
workbook
. If it is not a complete path then it will…
Re: vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Siddharth_1
… xl As New excel.Application Dim wbksour As
Workbook
Dim wbkdes As
Workbook
Dim strFirstFile As String Dim strSecondFile As String strFirstFile…
Re: vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Klahr_R
… created two folders named MyTarget and MySource. I saved a
workbook
to each folder with similar names. I indluded a command… could stop the vb6 code. If you find the target
workbook
(not opened) in its file folder and right click the…
Re: vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Klahr_R
'In VBA any
workbook
to save only If Me.Saved = False the Me.Save OR ' If closing the workbooks VBA or VB6 sourceBook.Close True ' True saves changes; False doesn't save TargetBook.Close True then set objects to nothing ' For VB6 Application.Quit If you are trying to save the sheet then it will make a copy hope that helps.
Re: vb6 code to copy cell value from one workbook to another and it should be d
Programming
Software Development
11 Years Ago
by Klahr_R
… bottom, uncheck the Read-Only Recommended box, then save the
workbook
When I have the read only box checked on the…
compare two ranges in different workbooks and copy data to a 3rd workbook
Programming
Software Development
15 Years Ago
by asadalim1
… how it goes: I have two spreadsheets in different workbooks (
workbook
1: sheet 1 and workbook2: sheet1), here i need to… rows in book 2 where X occurs to a new
workbook
3 in sheet 1 and also it shoud copy entire… 1 [CODE]Sub wrkting() Dim b1 As
Workbook
Dim b2 As
Workbook
Dim b3 As
Workbook
Dim W1 As Worksheet Dim W2 As…
Help: Create Excel 2003 workbook from VB..net
Programming
Software Development
14 Years Ago
by sipchen
…= False objBook = CType(objExcel.Workbooks.Add(), Excel.
Workbook
) objBooks = objExcel.Workbooks objSheet = CType(objBooks(1…objSheets = objBook.Worksheets ' Adding multiple worksheets to
workbook
objSheets.Add(Count:=2) 'Adding First Sheet objBook…
VBA : Workbook which is open Already is not getting activated
Programming
Software Development
13 Years Ago
by gurushankar
…particular sheet. I have done code, but when the
workbook
is already open, it is not activating the sheet…As Worksheet Dim SheetObj As Worksheet Dim DataWorkbook As
Workbook
If Not Intersect(Target, Range("B2:B7"…COLOR="Green"]'---> This part opens the
workbook
if it is not already open[/COLOR] If Not…
Have problem in Manipulating Workbook Object and make macro shortest as possible
Programming
Software Development
17 Years Ago
by Irmann
… can automatically pull data between 2 sheet in the same
workbook
. The example below, just compare 2 cell and then pull… i have 100++ data to compare between 2 sheet or
workbook
, it make my macro become unwieldy as the number of… given to you is compare between 2 sheet in same
workbook
. Can anyone out there teach me how to compare between…
Check for Opened Excel Workbook (if any) before Closing Using VB.Net 2005
Programming
Software Development
15 Years Ago
by dor.marchan
…Dim objOffice As Excel.Application Dim WBook As Excel.
Workbook
On Error Resume Next While Err.Number = 0 … objOffice.DisplayAlerts = False For Each objWindow As Excel.
Workbook
In objOffice.Windows objWindow.Activate() WBook = objOffice.ActiveWorkbook…
Copy and paste matching vaules to new workbook
Programming
Software Development
15 Years Ago
by asadalim1
…copy the values from column 5 into a new
workbook
. i am getting an subscript out of range …much appreciated. [CODE]Sub myown() Dim B1, B2 As
Workbook
Dim s1, s2 As Worksheet Set B1 = Workbooks("…End If ActiveWorkbook.Worksheets("Remake").Copy 'the new
workbook
is now active With ActiveWorkbook .Worksheets(1) = "…
Response.Write(Workbook) outputs two workbooks
Programming
Web Development
14 Years Ago
by croker10
… I am trying to output an excel
workbook
that I created else where in the … another page doc, which has Microsoft.Interop.Excel.
Workbook
in cell one. And to add to the …Below is the code I am using. [CODE] Excel.
Workbook
exWB = rm.GenerateNewEnrollmentReport(students); Response.Clear(); Response.ContentType =…
Re: Help: Create Excel 2003 workbook from VB..net
Programming
Software Development
14 Years Ago
by sipchen
…]Dim oExcel As Excel.Application = Nothing Dim oBook As Excel.
Workbook
= Nothing Dim oSheet As Excel.Worksheet = Nothing ' create a excel…
Adding worksheet to current workbook
Programming
Software Development
13 Years Ago
by Afi83
…Dim xlApp As New excel.Application Dim xlWBook As excel.
Workbook
= xlApp.Workbooks.Add(excelName) Dim xlWSheet As excel.…End If [/CODE] Every time it opens a new
workbook
(Second line) I cannot create new worksheet at the… current
workbook
. I tried to put the xlapp.workbooks.add(…
How to check passowrd protected without open the Workbook
Programming
Software Development
11 Years Ago
by Kath_Fish
Hi, I am doing the determination password protection for
workbook
without opening the
workbook
. Is it possible to do determination password protection without open
workbook
...?
Create new workbook and copy data from existing to new workbook.
Programming
Software Development
15 Years Ago
by Krondorl
Greetings, I have a
workbook
that has 600+ rows of information. I want to iterate … rows and copy sections from that sheet to a new
workbook
that is created on the fly. The following code is…
Re: Response.Write(Workbook) outputs two workbooks
Programming
Web Development
14 Years Ago
by croker10
Never mind, I figured it out. Response.Write(exWB); does not work for excel workbooks. It was really doing Response.Write(exWB.toString()), and since I was returning the excel
workbook
, the code was not doing
WorkBook
.Close() and Application.Quit(), without which, the formatted report was being left open in the background.
import data from all excel workbooks in a directory into another Excel Workbook
Programming
Software Development
16 Years Ago
by lucameyer
… a little help. I have built a complex ms excel
workbook
that imports data from many single sheet ms excel workbooks… file names in the directory. I would like my master
workbook
to automatically look in the directory and import all the…
Saving Excel template as workbook in VB.net
Programming
Software Development
16 Years Ago
by raoulb
….SetLastWriteTime(.ToString, Now) End With This works 100% and the
workbook
file is created. The worksheets are then updated with data… issue comes at save time: Excel tries to save the
workbook
as MediumMill2008071.xls (notice the extra 1). It looks like…
Export datagrid to a specific excel workbook & tab
Programming
Web Development
16 Years Ago
by limab
… to do as long as its to a generic excel
workbook
. I can't figure out how to direct to open… a specific
workbook
, create a new tab with a name that I create…
Re: Create new workbook and copy data from existing to new workbook.
Programming
Software Development
15 Years Ago
by AndreRet
t seems that you have referenced the incorrect object. Try the following - [CODE]Dim oXLTG As Object 'Your current code Dim oXLTG as New Excel.
Workbook
'New code. 'Make sure that excell is referenced in 'Project - References'[/CODE]
Unprotecting a worksheet of a shared workbook in VB6?
Programming
Software Development
14 Years Ago
by Swoop_GB
… protect it again. The following code works ok if the
workbook
is [B][U][I]not[/I][/U][/B] shared: [CODE… DrawingObjects:=True, Contents:=True, Scenarios:=True [/CODE] However, when the
workbook
is shared for network use this results in the error…
MS ACCESS - VBA Getting data from excel workbook and put in as records in database
Programming
Software Development
14 Years Ago
by ShadowScripter
… I, in MS Access using VBA, get information from a
workbook
which I can then put in as a recordset in… to excel Excel to excel: [CODE=VB] Dim wb As
Workbook
Dim path As String path = "D:\Documents\etc\Book1…
creating excel workbook dynamically through vb.net
Programming
Software Development
13 Years Ago
by mdeokute
to create excel
workbook
dynamically where data will be input and manipulated by user. i want graph as well to be created using the data i manipulated and entered. i want as many as work sheets to be added in
workbook
once it is created. please help i have no idea about it. thanx
Copy to Another Workbook - Macro VBA
Programming
Software Development
13 Years Ago
by violette
… into the template however it takes data from the macro
workbook
.I don't know which part should I change to… from the file1 instead. [CODE]Sub TransferData() Dim wkb As
Workbook
, wks As Worksheet, LastRow As Long Dim FilePath As String…
VBA code slow when workbook open to find file
Programming
Software Development
12 Years Ago
by Divinedar
… perfectly except for one thing, when you first open the
workbook
and type the file name in the G column (7… and it only takes a second. Once you close the
workbook
and open it back up then you have to wait…
Check to see if a workbook is open multiple times
Programming
Software Development
10 Years Ago
by Papa_Don
… behind an Excel spreadsheet to check to see if another
workbook
is open. If it isn't open, I'm having… If FYI: "14D Scorecard.xlsx" is the second
workbook
that I've referred to above. If you have some…
Microsoft Excel how to copy a spreadsheet in the same workbook and links to
Hardware and Software
Microsoft Windows
10 Years Ago
by ggeoff
Hi I thought this was easy. I want to copy a spreadsheet in a
workbook
to a new spreadsheet in the same
workbook
preserving links. So as the source worksheet received new entries the copied spreadsheet would be updated. My reason being that I would introduce some variation in the way that data was computed on a few lines.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC