https://github.com/zhanglianbo35/ExcelVBA
Some MS Excel VBA developed by myself
https://github.com/zhanglianbo35/ExcelVBA
vba-excel
Last synced: 5 months ago
JSON representation
Some MS Excel VBA developed by myself
- Host: GitHub
- URL: https://github.com/zhanglianbo35/ExcelVBA
- Owner: zhanglianbo35
- Created: 2017-09-21T17:08:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T11:19:30.000Z (about 2 years ago)
- Last Synced: 2024-08-09T02:19:49.141Z (8 months ago)
- Topics: vba-excel
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - zhanglianbo35/ExcelVBA - Some MS Excel VBA developed by myself (Others)
README
## ExcelVBA
### SAS Add-in for Microsoft Office, install package, 2022-12-12
64 bit Download in [here](https://tshf.sas.com/techsup/download/hotfix/HF2/BIRD/msofficeint__94230__wx6__en__sp0__1/msofficeint.msi)
32 bit Download in [here](https://tshf.sas.com/techsup/download/hotfix/HF2/BIRD/msofficeint__94230__win__en__sp0__1/msofficeint.msi)
*ps: version should be match with your office's version, not SAS. *### SAS.OfficeAdd-in.txt
By batch import multiple *sas7bdat* or *xpt* into Excel workbook through file system location.### SAS.OfficeAdd-in 2.txt
By batch import multiple *sas7bdat* into Excel workbook through SAS library, **which need run the SAS code in SAS program tab manually** *at first*. This method can also solve the external SAS format catalog loading issue.### colADJ.txt
Clear the unexpect formats cross all worksheets inside SDTM specifcation.### About set VBA project reference by program
User need select SAS Add-in in VBA reference before running VBA macro. So first step we need do that in the beginning of the program. I just find that after SAS Add-in version changed, the GUID also changed for its VBA reference.
So when using GUID, in version 8.3, it changed to {9E9CE404-E32F-4DEC-BC01-292916642B95} .
See more detail info in [here](https://stackoverflow.com/questions/9879825/how-to-add-a-reference-programmatically-using-vba#:~:text=There%20are%20two%20ways%20to%20add%20references%20using%20VBA.%20.,to%20add%20a%20reference%20to.)
About how to find GUID, in previous I used this [method](https://www.thespreadsheetguru.com/vba/2014/3/16/display-object-library-reference-guid-information), but somehow it does not work now in my Excel.
So I have to search in my regedit.exe , with key words "SAS.OfficeAddin.tlb", and then a path with the GUID format will be found, as for major and minor value, they are still same.