• Home
  • Blog
  • Resume
  • Contact
  • Projects
  • Gallery
  • Amit’s Resume
  • About Nagpur
KEEP IN TOUCH

Monthly archives for March, 2005

To check if a workbook is open, if it’s not open it

Mar03
2005
Leave a Comment Written by admin

This Procedure will ask for a file name to the user, will check if the file is open and if it’s not open it will open the file otherwise give a message to the user.

Public Sub IsWorkbookOpen()
Dim Wb As Workbook, wkbk As Variant
‘get the dialog box to open the file
wkbk = Application.GetOpenFilename(“Excel Files,*.xls”)
If wkbk = False Then Exit Sub
‘check if its already opened in the Windows collection
Dim flag As Boolean
flag = False
For Each Wb In Workbooks
If Wb.Path & “\” & Wb.Name = wkbk Then
MsgBox “File is already open”, vbExclamation, “Workbook Open”
Wb.Activate
flag = True
End If
Next Wb
If flag = False Then Workbooks.Open (wkbk)
End Sub
Posted in Uncategorized - Tagged Path Wb, Workbook Open Wb

Super-Easy Guide to the Microsoft Office Excel 2003 Object Model

Mar01
2005
Leave a Comment Written by admin

One more tutorial for VBA beginners. It’s really great, you’d be amazed by the power of VBA and it is very easy to learn. So why wait? start programming right now

Super-Easy Guide to the Microsoft Office Excel 2003 Object Model

Summary: Learn how easy it is to use the Excel object model to customize the way you work with Excel. Lessons include creating subroutines, the basics of objects, methods, and properties, and using dialog boxes. (29 printed pages)

Posted in Uncategorized - Tagged VBA

VBA Samples for Working with Excel 2003 Worksheets

Mar01
2005
Leave a Comment Written by admin

Good VBA examples for beginners at MSDN.

VBA Samples for Working with Excel 2003 Worksheets

Posted in Uncategorized
Newer Entries »

Tags

Access Alt F8 Books boxplot cells charts count cursor dashboard data mining dbase design error excel excel functions export filter flip LaTex MS query Number Err ODBC pipes Press Alt F11 Public Sub python R random numbers Range Cells report scripting software sparklines SQL SQL server stack columns statistics stemming string tag cloud text mining UDF VBA visualization wildcard

Network

View Ashutosh Nandeshwar's profile on LinkedIn

Recent Comments

  • larry on Access Export to Excel (2007)
  • Betty Chou on Projects
  • Rwill on Access Export to Excel (2007)
  • Bharathi on The search key was not found in any record in Access
  • Michael on The search key was not found in any record in Access

EvoLve theme by Blogatize  •  Powered by WordPress nandeshwar.info